refact(session connection): remove session connection state table (#4617)

* refact(session connection): remove session connection state table
This commit is contained in:
Irena Rindos authored and GitHub committed 2024-07-23 14:19:21 -04:00
1 parent eb6e1b558d
commit 2191aa1d03
27 files changed
+543 -729

No files matched your search

+2 -4
View File
@@ -155,11 +155,9 @@ func (s *TestSession) ExpectConnectionStateOnController(
}
for i, conn := range conns {
_, states, err := connectionRepo.LookupConnection(ctx, conn.PublicId, nil)
c, err := connectionRepo.LookupConnection(ctx, conn.PublicId, nil)
require.NoError(err)
// Look at the first state in the returned list, which will
// be the most recent state.
actualStates[i] = states[0].Status
actualStates[i] = session.ConnectionStatusFromString(c.Status)
}
if reflect.DeepEqual(expectStates, actualStates) {