test/fake_home.rb in zold-0.16.24 vs test/fake_home.rb in zold-0.16.25
- old
+ new
@@ -53,10 +53,10 @@
Zold::SyncWallets.new(Zold::CachedWallets.new(Zold::Wallets.new(@dir)), log: @log)
end
def create_wallet(id = Zold::Id.new, dir = @dir)
target = Zold::Wallet.new(File.join(dir, id.to_s + Zold::Wallet::EXT))
- wallets.find(id) do |w|
+ wallets.acq(id, exclusive: true) do |w|
w.init(id, Zold::Key.new(file: File.expand_path(File.join(__dir__, '../fixtures/id_rsa.pub'))))
IO.write(target.path, IO.read(w.path))
end
target
end