From d74b4dacb95e658a23b4fc7c003237bf0e785924 Mon Sep 17 00:00:00 2001 From: Noemi <45180344+unflxw@users.noreply.github.com> Date: Tue, 8 Oct 2024 15:26:35 +0200 Subject: [PATCH] Fix heartbeat test bug I don't know if this is what has caused the test suite to intermittently hang (probably not?) but I fixed this bug on the Python test suite, so I'm fixing it here as well. --- spec/lib/appsignal/check_in/heartbeat_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/lib/appsignal/check_in/heartbeat_spec.rb b/spec/lib/appsignal/check_in/heartbeat_spec.rb index c7eec933..613ecb17 100644 --- a/spec/lib/appsignal/check_in/heartbeat_spec.rb +++ b/spec/lib/appsignal/check_in/heartbeat_spec.rb @@ -120,7 +120,7 @@ def schedule_heartbeat(**kwargs) end ) - wait_for("the event to be transmitted") { scheduler.transmitted == 2 } + wait_for("the event to be transmitted") { scheduler.transmitted >= 2 } expect(stub.count).to be >= 2 end end