mirror of
https://github.com/coder/coder.git
synced 2025-07-03 16:13:58 +00:00
fix: ensure agent DisconnectedAt
is greater than or equal LastConnectedAt
(#6692)
See https://github.com/coder/coder/actions/runs/4471502401/jobs/7856475920
This commit is contained in:
@ -1402,8 +1402,12 @@ func TestWorkspaceUpdateTTL(t *testing.T) {
|
||||
|
||||
require.Equal(t, testCase.ttlMillis, updated.TTLMillis, "expected autostop ttl to equal requested")
|
||||
|
||||
require.Len(t, auditor.AuditLogs, 7)
|
||||
assert.Equal(t, database.AuditActionWrite, auditor.AuditLogs[6].Action)
|
||||
require.Eventually(t, func() bool {
|
||||
if len(auditor.AuditLogs) != 7 {
|
||||
return false
|
||||
}
|
||||
return auditor.AuditLogs[6].Action == database.AuditActionWrite
|
||||
}, testutil.WaitMedium, testutil.IntervalFast, "expected audit log to be written")
|
||||
})
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user