test/commands/test_node.rb in zold-0.18.8 vs test/commands/test_node.rb in zold-0.18.9

- old
+ new

@@ -37,30 +37,26 @@ # NODE test. # Author:: Yegor Bugayenko (yegor256@gmail.com) # Copyright:: Copyright (c) 2018 Yegor Bugayenko # License:: MIT class TestNode < Zold::Test - # @todo #306:30min This test is failing from time to time - # We should find a way to check that tests involved in thread concurrency - # are always working def test_push_and_fetch - skip FakeHome.new(log: test_log).run do |home| FakeNode.new(log: test_log).run do |port| wallets = home.wallets wallet = home.create_wallet remotes = home.remotes remotes.add('localhost', port) Zold::Push.new(wallets: wallets, remotes: remotes, log: test_log).run( - ['push', '--ignore-score-weakness'] + ['push', '--ignore-score-weakness', '--tolerate-edges'] ) copies = home.copies(wallet) begin retries ||= 0 Zold::Fetch.new( wallets: wallets, copies: copies.root, remotes: remotes, log: test_log - ).run(['fetch', '--ignore-score-weakness']) + ).run(['fetch', '--ignore-score-weakness', '--tolerate-edges']) rescue StandardError => _ sleep 1 retry if (retries += 1) < 3 end assert_equal(1, copies.all.count)