Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitf2ee89c

Browse files
authored
fix: fix moreTestWorkspaceAutobuild flakes (#19417)
made these commits yesterday but apparently I forgot to push so they gotmissed in#19398---------Signed-off-by: Callum Styan <callumstyan@gmail.com>
1 parent9e5c83a commitf2ee89c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎enterprise/coderd/workspaces_test.go‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1122,7 +1122,7 @@ func TestWorkspaceAutobuild(t *testing.T) {
11221122

11231123
// Simulate the workspace being dormant beyond the threshold.
11241124
tickTime2:=ws.DormantAt.Add(2*transitionTTL)
1125-
coderdtest.UpdateProvisionerLastSeenAt(t,db,p.ID,tickTime)
1125+
coderdtest.UpdateProvisionerLastSeenAt(t,db,p.ID,tickTime2)
11261126
ticker<-tickTime2
11271127
stats=<-statCh
11281128
require.Len(t,stats.Transitions,1)
@@ -1481,7 +1481,7 @@ func TestWorkspaceAutobuild(t *testing.T) {
14811481

14821482
// Force an autostart transition again.
14831483
tickTime2:=sched.Next(firstBuild.CreatedAt)
1484-
coderdtest.UpdateProvisionerLastSeenAt(t,db,p.ID,tickTime)
1484+
coderdtest.UpdateProvisionerLastSeenAt(t,db,p.ID,tickTime2)
14851485
tickCh<-tickTime2
14861486
stats=<-statsCh
14871487
require.Len(t,stats.Errors,0)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp