From fa125f2a38e0aa28f6d3000a80ea5167115172d7 Mon Sep 17 00:00:00 2001 From: Ryan Melton Date: Thu, 12 May 2016 11:52:56 -0600 Subject: [PATCH] fix spec on ubuntu --- spec/tools/cmd_tlm_server/router_thread_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/tools/cmd_tlm_server/router_thread_spec.rb b/spec/tools/cmd_tlm_server/router_thread_spec.rb index a29ba8b8f..ad63f0e07 100644 --- a/spec/tools/cmd_tlm_server/router_thread_spec.rb +++ b/spec/tools/cmd_tlm_server/router_thread_spec.rb @@ -27,7 +27,7 @@ module Cosmos allow(@interface).to receive(:disconnect) allow(@interface).to receive(:read) do sleep 0.06 - @packet + @packet.clone end end @@ -115,7 +115,7 @@ module Cosmos expect(Thread.list.length).to eql(1) expect(stdout.string).to match "Received unknown identified command: BOB SMITH" end - expect(target).to have_received(:interface).twice #and_return(@interface) + expect(target).to have_received(:interface).at_least(2).times #and_return(@interface) end it "does not send identified commands with a target and no interface" do