test/node/test_spread_entrance.rb in zold-0.31.5 vs test/node/test_spread_entrance.rb in zold-0.31.6
- old
+ new
@@ -1,8 +1,8 @@
# frozen_string_literal: true
-# Copyright (c) 2018-2023 Zerocracy, Inc.
+# Copyright (c) 2018-2023 Zerocracy
#
# 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
@@ -56,10 +56,10 @@
FakeNode.new(log: test_log).run(['--ignore-score-weakness']) do |port|
wallet = home.create_wallet
remotes = home.remotes
remotes.add('localhost', port)
Zold::SpreadEntrance.new(FakeEntrance.new, home.wallets, remotes, 'x', log: test_log).start do |e|
- 8.times { e.push(wallet.id, IO.read(wallet.path)) }
+ 8.times { e.push(wallet.id, File.read(wallet.path)) }
assert(e.to_json[:modified] < 2, "It's too big: #{e.to_json[:modified]}")
end
end
end
end