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!
@@ -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