Skip to content

Commit f2ee89c

Browse files
authored
fix: fix more TestWorkspaceAutobuild flakes (#19417)
made these commits yesterday but apparently I forgot to push so they got missed in #19398 --------- Signed-off-by: Callum Styan <callumstyan@gmail.com>
1 parent 9e5c83a commit f2ee89c

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy