test/fake_home.rb in zold-0.22.3 vs test/fake_home.rb in zold-0.22.4

- old
+ new

@@ -43,10 +43,12 @@ end def run Dir.mktmpdir do |dir| FileUtils.copy(File.expand_path(File.join(__dir__, '../fixtures/id_rsa')), File.join(dir, 'id_rsa')) - yield FakeHome.new(dir, log: @log) + result = yield FakeHome.new(dir, log: @log) + sleep 0.1 # It's a workaround against a bug (without it tests fail sporadically) + result end end def wallets Zold::SyncWallets.new(Zold::CachedWallets.new(Zold::Wallets.new(@dir)), log: @log)