fix: don't stop reactor if test

Phillip Davis created

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!

Change summary

sgx-bwmsgsv2.rb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Detailed changes

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