Skip to content

Commit 29e9cff

Browse files
refactor: CR's fixes
1 parent 13c0e28 commit 29e9cff

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

enterprise/coderd/prebuilds/reconcile_test.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -729,12 +729,10 @@ func TestSkippingHardLimitedPresets(t *testing.T) {
729729

730730
if tc.isHardLimitHit {
731731
// When hard limit is reached, no new workspace should be created
732-
workspaceCount = len(workspaces)
733-
require.Equal(t, 1, workspaceCount)
732+
require.Equal(t, 1, len(workspaces))
734733
} else {
735734
// When hard limit is not reached, a new workspace should be created
736-
workspaceCount = len(workspaces)
737-
require.Equal(t, 2, workspaceCount)
735+
require.Equal(t, 2, len(workspaces))
738736
}
739737
})
740738
}

0 commit comments

Comments
 (0)