fix(coderd/agentapi): set ReadyAt for start timeout (#13846)

This commit is contained in:
Mathias Fredriksson
2024-07-09 18:55:16 +00:00
committed by GitHub
parent b07e3069dd
commit 35a808f089
4 changed files with 14 additions and 3 deletions
+1 -1
View File
@@ -275,7 +275,7 @@ func TestUpdateLifecycle(t *testing.T) {
if state == agentproto.Lifecycle_STARTING {
expectedStartedAt = sql.NullTime{Valid: true, Time: stateNow}
}
if state == agentproto.Lifecycle_READY || state == agentproto.Lifecycle_START_ERROR {
if state == agentproto.Lifecycle_READY || state == agentproto.Lifecycle_START_TIMEOUT || state == agentproto.Lifecycle_START_ERROR {
expectedReadyAt = sql.NullTime{Valid: true, Time: stateNow}
}