summaryrefslogtreecommitdiff
path: root/test/integration/hkp_test.rb
diff options
context:
space:
mode:
authorAzul <azul@riseup.net>2016-06-30 13:47:40 +0200
committerAzul <azul@riseup.net>2016-06-30 13:47:40 +0200
commitfe9a23419f9a875a98fc05dc22e2ad6c5f6dbe3b (patch)
tree32fa0be1bc2820dc7e252c6f5d4afe2848c58f98 /test/integration/hkp_test.rb
parent7802da3d9684c5c78d34e0154f827221803b207b (diff)
actually use celluloid io for http requests
Diffstat (limited to 'test/integration/hkp_test.rb')
-rw-r--r--test/integration/hkp_test.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/integration/hkp_test.rb b/test/integration/hkp_test.rb
index cbb8190..586b3ab 100644
--- a/test/integration/hkp_test.rb
+++ b/test/integration/hkp_test.rb
@@ -1,9 +1,21 @@
require 'test_helper'
require 'nickserver/hkp/source'
require 'nickserver/adapters/celluloid_http'
+require 'celluloid/test'
class HkpTest < Minitest::Test
+ def setup
+ super
+ Celluloid.boot
+ end
+
+ def teardown
+ Celluloid.shutdown
+ super
+ end
+
+
def test_key_info_expired
fetch_key_info(:hkp_vindex_result, 'lemur@leap.se') do |keys|
assert_equal 1, keys.length, 'should find a single key'