From 1ea7964a508463391f3c55f072750a850e248327 Mon Sep 17 00:00:00 2001 From: Phillip Davis Date: Thu, 5 Feb 2026 09:13:25 -0500 Subject: [PATCH] fix: don't stop reactor if test each test runs on its own reactor. stopping it means that `assert`s are never called, which meant that gateway shutdown was counted as test success. no bueno! --- sgx-bwmsgsv2.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sgx-bwmsgsv2.rb b/sgx-bwmsgsv2.rb index 1cdddcf9a30a8af47c0f80a5dd7bcabd143fffe4..9c646fcf9b4a095493e3411d205162f11ee17f7b 100755 --- a/sgx-bwmsgsv2.rb +++ b/sgx-bwmsgsv2.rb @@ -1234,7 +1234,7 @@ class WebhookHandler < Goliath::API puts 'Shutting down gateway due to exception 013: ' + e.message SGXbwmsgsv2.shutdown puts 'Gateway has terminated.' - EM.stop + EM.stop unless ENV['ENV'] == 'test' end end