Skip to content

Commit e8b53f7

Browse files
test: minor changes to the test
1 parent d7b4ec4 commit e8b53f7

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

coderd/database/querier_test.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4002,7 +4002,11 @@ func TestGetPresetsBackoff(t *testing.T) {
40024002

40034003
tmpl1 := createTemplate(db)
40044004
tmpl1V1 := createTmplVersion(db, tmpl1, tmpl1.ActiveVersionID, &tmplVersionOpts{
4005-
DesiredInstances: 5,
4005+
DesiredInstances: 6,
4006+
})
4007+
createWorkspaceBuild(db, tmpl1, tmpl1V1, &workspaceBuildOpts{
4008+
successfulJob: false,
4009+
createdAt: now.Add(-lookbackPeriod - time.Minute), // earlier than lookback period - skipped
40064010
})
40074011
createWorkspaceBuild(db, tmpl1, tmpl1V1, &workspaceBuildOpts{
40084012
successfulJob: false,

0 commit comments

Comments
 (0)