From 6b40cb83614d2e433879001f2592841a043a7427 Mon Sep 17 00:00:00 2001 From: Kenaniah Cerny Date: Wed, 26 Jan 2022 13:26:30 -0800 Subject: [PATCH] tests --- spec/support/test_jobs.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/support/test_jobs.rb b/spec/support/test_jobs.rb index 128cea3..393d787 100644 --- a/spec/support/test_jobs.rb +++ b/spec/support/test_jobs.rb @@ -125,7 +125,7 @@ class RetriedJob < StubJob def perform Sidekiq.redis do |conn| key = "RetriedJob_#{jid}" - unless conn.exists(key) > 0 + if [0, false].include? conn.exists(key) conn.set key, 'tried' raise StandardError end