We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
TestWorkspaceAutobuild
1 parent9e5c83a commitf2ee89cCopy full SHA for f2ee89c
enterprise/coderd/workspaces_test.go
@@ -1122,7 +1122,7 @@ func TestWorkspaceAutobuild(t *testing.T) {
1122
1123
// Simulate the workspace being dormant beyond the threshold.
1124
tickTime2:=ws.DormantAt.Add(2*transitionTTL)
1125
-coderdtest.UpdateProvisionerLastSeenAt(t,db,p.ID,tickTime)
+coderdtest.UpdateProvisionerLastSeenAt(t,db,p.ID,tickTime2)
1126
ticker<-tickTime2
1127
stats=<-statCh
1128
require.Len(t,stats.Transitions,1)
@@ -1481,7 +1481,7 @@ func TestWorkspaceAutobuild(t *testing.T) {
1481
1482
// Force an autostart transition again.
1483
tickTime2:=sched.Next(firstBuild.CreatedAt)
1484
1485
tickCh<-tickTime2
1486
stats=<-statsCh
1487
require.Len(t,stats.Errors,0)