test/commands/test_push.rb in zold-0.18.8 vs test/commands/test_push.rb in zold-0.18.9
- old
+ new
@@ -41,11 +41,11 @@
wallet = home.create_wallet
remotes = home.remotes
remotes.add('localhost', 80)
stub_request(:put, "http://localhost:80/wallet/#{wallet.id}").to_return(status: 304)
Zold::Push.new(wallets: home.wallets, remotes: remotes, log: test_log).run(
- ['--ignore-this-stupid-option', 'push', wallet.id.to_s]
+ ['--ignore-this-stupid-option', 'push', wallet.id.to_s, '--tolerate-edges']
)
end
end
def test_pushes_multiple_wallets
@@ -56,10 +56,10 @@
remotes = home.remotes
remotes.add('localhost', 80)
stub_request(:put, "http://localhost:80/wallet/#{wallet_a.id}").to_return(status: 304)
stub_request(:put, "http://localhost:80/wallet/#{wallet_b.id}").to_return(status: 304)
Zold::Push.new(wallets: home.wallets, remotes: remotes, log: log).run(
- ['--ignore-this-stupid-option --threads 2', 'push', wallet_a.id.to_s, wallet_b.id.to_s]
+ ['--tolerate-edges', '--threads=2', 'push', wallet_a.id.to_s, wallet_b.id.to_s]
)
end
end
end