test/node/test_async_entrance.rb in zold-0.16.12 vs test/node/test_async_entrance.rb in zold-0.16.13
- old
+ new
@@ -34,11 +34,11 @@
# License:: MIT
class TestAsyncEntrance < Minitest::Test
def test_renders_json
FakeHome.new(log: test_log).run do |home|
Zold::AsyncEntrance.new(FakeEntrance.new, home.dir, log: test_log).start do |e|
- assert_equal(true, e.to_json[:'pool.running'])
+ assert_equal(0, e.to_json[:queue])
end
end
end
def test_sends_through_once
@@ -64,11 +64,11 @@
amount = Zold::Amount.new(zld: 39.99)
key = Zold::Key.new(file: 'fixtures/id_rsa')
wallet.sub(amount, "NOPREFIX@#{Zold::Id.new}", key)
5.times { e.push(wallet.id, IO.read(wallet.path)) }
end
+ assert_equal_wait(true) { basic.count >= 20 }
end
- assert_equal_wait(true) { basic.count >= 20 }
end
end
def test_handles_broken_entrance_gracefully
FakeHome.new(log: test_log).run do |home|