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

Commit9e5c83a

Browse files
authored
fix: fix flakes in TestWorkspaceAutobuild due to incorrect tick time (#19398)
we missed these in the previous PR, we find `tickTime2`and pass it to the `tickCh`, but we were incorrectly passing `tickTime`to `UpdateProvisionerLastSeenAt` in some placesSigned-off-by: Callum Styan <callumstyan@gmail.com>
1 parentb6abcba commit9e5c83a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎enterprise/coderd/workspaces_test.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1277,7 +1277,7 @@ func TestWorkspaceAutobuild(t *testing.T) {
12771277

12781278
// We should see the workspace get stopped now.
12791279
tickTime2:=ws.LastUsedAt.Add(inactiveTTL*2)
1280-
coderdtest.UpdateProvisionerLastSeenAt(t,db,p.ID,tickTime)
1280+
coderdtest.UpdateProvisionerLastSeenAt(t,db,p.ID,tickTime2)
12811281
tickCh<-tickTime2
12821282
stats=<-statsCh
12831283
require.Len(t,stats.Errors,0)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp