Skip to content

Commit 9e5c83a

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 places Signed-off-by: Callum Styan <callumstyan@gmail.com>
1 parent b6abcba commit 9e5c83a

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)