Skip to content

Commit 52f3b8d

Browse files
Merge pull request #87 from figma/shopify-sync/nil-reservation-fix
[Shopify Sync] Fix nil reservation when queue is empty
2 parents cbfe7f6 + 216dfd4 commit 52f3b8d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ruby/lib/ci/queue/redis/worker.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,9 @@ def reserve
328328
'You have to acknowledge it before you can reserve another one'
329329
end
330330

331-
@reserved_test = try_to_reserve_lost_test || try_to_reserve_test
331+
test = try_to_reserve_lost_test || try_to_reserve_test
332+
@reserved_test = test if test
333+
test
332334
end
333335

334336
def try_to_reserve_test

0 commit comments

Comments
 (0)