Send connected RPC to controller (#386)

This commit is contained in:
Jeff Mitchell authored and GitHub committed 2020-09-20 23:09:42 -04:00
1 parent 5370111336
commit 7ff4b7f106
11 files changed
+444 -108

No files matched your search

+2 -2
View File
@@ -269,7 +269,7 @@ func TestRepository_CreateSession(t *testing.T) {
assert.NotNil(ses.CreateTime)
assert.NotNil(ses.States[0].StartTime)
assert.Equal(ses.States[0].Status, StatusPending)
foundSession, err := repo.LookupSession(context.Background(), ses.PublicId)
foundSession, _, err := repo.LookupSession(context.Background(), ses.PublicId)
assert.NoError(err)
// Account for slight offsets in nanos
@@ -1076,7 +1076,7 @@ func TestRepository_DeleteSession(t *testing.T) {
}
assert.NoError(err)
assert.Equal(tt.wantRowsDeleted, deletedRows)
foundSession, err := repo.LookupSession(context.Background(), tt.args.session.PublicId)
foundSession, _, err := repo.LookupSession(context.Background(), tt.args.session.PublicId)
assert.NoError(err)
assert.Nil(foundSession)