File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed
enterprise/coderd/prebuilds Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -197,7 +197,6 @@ func TestClaimPrebuild(t *testing.T) {
197
197
198
198
// Then: a prebuild should have been claimed.
199
199
require .EqualValues (t , spy .claims .Load (), 1 )
200
- require .NotNil (t , spy .claims .Load ())
201
200
require .EqualValues (t , * spy .claimParams .Load (), params )
202
201
203
202
if ! tc .expectPrebuildClaimed {
@@ -207,7 +206,7 @@ func TestClaimPrebuild(t *testing.T) {
207
206
208
207
require .NotNil (t , spy .claimedWorkspace .Load ())
209
208
claimed := * spy .claimedWorkspace .Load ()
210
- require .NotEqual (t , claimed , uuid .Nil )
209
+ require .NotEqual (t , claimed . ID , uuid .Nil )
211
210
212
211
// Then: the claimed prebuild must now be owned by the requester.
213
212
workspace , err := spy .GetWorkspaceByID (ctx , claimed .ID )
You can’t perform that action at this time.
0 commit comments