Skip to content

Commit 7a72d03

Browse files
CR's fixes
1 parent 70bf179 commit 7a72d03

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

enterprise/coderd/prebuilds/claim_test.go

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -216,14 +216,11 @@ func TestClaimPrebuild(t *testing.T) {
216216
// Then: the number of running prebuilds has changed since one was claimed.
217217
currentPrebuilds, err := spy.GetRunningPrebuiltWorkspaces(ctx)
218218
require.NoError(t, err)
219-
require.NotEqual(t, len(currentPrebuilds), len(runningPrebuilds))
219+
require.Equal(t, expectedPrebuildsCount-1, len(currentPrebuilds))
220220

221221
// Then: the claimed prebuild is now missing from the running prebuilds set.
222-
current, err := spy.GetRunningPrebuiltWorkspaces(ctx)
223-
require.NoError(t, err)
224-
225222
var found bool
226-
for _, prebuild := range current {
223+
for _, prebuild := range currentPrebuilds {
227224
if prebuild.ID == claimed.ID {
228225
found = true
229226
break

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