We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parent70bf179 commit7a72d03Copy full SHA for 7a72d03
enterprise/coderd/prebuilds/claim_test.go
@@ -216,14 +216,11 @@ func TestClaimPrebuild(t *testing.T) {
216
// Then: the number of running prebuilds has changed since one was claimed.
217
currentPrebuilds,err:=spy.GetRunningPrebuiltWorkspaces(ctx)
218
require.NoError(t,err)
219
-require.NotEqual(t,len(currentPrebuilds),len(runningPrebuilds))
+require.Equal(t,expectedPrebuildsCount-1,len(currentPrebuilds))
220
221
// Then: the claimed prebuild is now missing from the running prebuilds set.
222
-current,err:=spy.GetRunningPrebuiltWorkspaces(ctx)
223
-require.NoError(t,err)
224
-
225
varfoundbool
226
-for_,prebuild:=rangecurrent {
+for_,prebuild:=rangecurrentPrebuilds {
227
ifprebuild.ID==claimed.ID {
228
found=true
229
break