Update test
This commit is contained in:
parent
ba30d22886
commit
cba6749e2f
|
@ -159,8 +159,8 @@ module Pigeon
|
|||
.flatten
|
||||
.uniq
|
||||
.map do |mhash|
|
||||
binary = Pigeon::Helpers.b32_decode(mhash.gsub(BLOB_SIGIL, ""))
|
||||
puts "Add #{mhash}"
|
||||
b32 = mhash.gsub(BLOB_SIGIL, "")
|
||||
binary = Pigeon::Helpers.b32_decode(b32)
|
||||
wanted.add(binary)
|
||||
end
|
||||
all_files = Dir[File.join(file_path, "*.blb"), File.join(file_path, "*.BLB")]
|
||||
|
|
|
@ -40,7 +40,7 @@ RSpec.describe Pigeon::Message do
|
|||
|
||||
it "does not ingest messages from blocked peers" do
|
||||
db.reset_database
|
||||
antagonist = "USER.58844MCNB7ZF7HVKYFRBR7R7E75T8YXP4JBR267AS09RNMHEG3EG"
|
||||
antagonist = "USER.FFQE19PEB55S1JMT5CVWZXK6V9D6E54GG8SK31QRXBDGF2AGHW50"
|
||||
db.block_peer(antagonist)
|
||||
db.import_bundle(BLOCKED_PEER_FIXTURE_PATH)
|
||||
expect(db.all_messages.count).to eq(0)
|
||||
|
|
Loading…
Reference in New Issue