From cba6749e2fb82a2fe257e1c3c4ab83a8c3597f4c Mon Sep 17 00:00:00 2001 From: Rick Carlino Date: Mon, 19 Oct 2020 07:08:11 -0500 Subject: [PATCH] Update test --- lib/pigeon/database.rb | 4 ++-- spec/pigeon/bundle_spec.rb | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/pigeon/database.rb b/lib/pigeon/database.rb index 1834470..633575f 100644 --- a/lib/pigeon/database.rb +++ b/lib/pigeon/database.rb @@ -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")] diff --git a/spec/pigeon/bundle_spec.rb b/spec/pigeon/bundle_spec.rb index c09e03b..8c71506 100644 --- a/spec/pigeon/bundle_spec.rb +++ b/spec/pigeon/bundle_spec.rb @@ -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)