test/zold/stress/test_pool.rb in zold-stress-0.6.0 vs test/zold/stress/test_pool.rb in zold-stress-0.7.0

- old
+ new

@@ -1,8 +1,8 @@ # frozen_string_literal: true -# Copyright (c) 2018 Yegor Bugayenko +# Copyright (c) 2018-2019 Yegor Bugayenko # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the 'Software'), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell @@ -38,11 +38,11 @@ class PoolTest < Minitest::Test def test_reloads_wallets Zold::Stress::FakeNode.new(test_log).exec do |port| Dir.mktmpdir do |home| wallets = Zold::SyncWallets.new(Zold::Wallets.new(home)) - Zold::Create.new(wallets: wallets, log: test_log).run( - ['create', '--public-key=fixtures/id_rsa.pub', Zold::Id::ROOT.to_s, '--network=test'] + Zold::Create.new(wallets: wallets, log: test_log, remotes: nil).run( + ['create', '--public-key=fixtures/id_rsa.pub', Zold::Id::ROOT.to_s, '--network=test', '--skip-test'] ) wallets.acq(Zold::Id::ROOT) do |w| w.add(Zold::Txn.new(1, Time.now, Zold::Amount.new(zld: 1.0), 'NOPREFIX', Zold::Id.new, '-')) end remotes = Zold::Remotes.new(file: File.join(home, 'remotes'), network: 'test')