Skip to content

Commit

Permalink
8325 - A default TTL should be supported
Browse files Browse the repository at this point in the history
Make tests more robust by sending in a hash where one is expected
rather than an empty string which causes failures.
  • Loading branch information
ripienaar committed Aug 29, 2011
1 parent fb8e579 commit 159101e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/unit/message_spec.rb
Expand Up @@ -226,7 +226,7 @@ module MCollective
end

it "should not validate for messages older than TTL" do
m = Message.new("", "message", :type => :request)
m = Message.new({:callerid => "caller", :senderid => "sender"}, "message", :type => :request)
m.instance_variable_set("@msgtime", (Time.now.to_i - 120))

expect {
Expand Down

0 comments on commit 159101e

Please sign in to comment.