Permalink
Browse files

Fix statsite tests

  • Loading branch information...
1 parent 688c503 commit 7423cc2b6014269f3fbaaa18c27e0656f2a297b7 @titanous titanous committed Jun 20, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 test/statsd-instrument_test.rb
@@ -166,7 +166,7 @@ def test_write_supports_statsite_gauge_syntax
StatsD.server = 'localhost:123'
StatsD.implementation = :statsite
- UDPSocket.any_instance.expects(:send).with('fooy:42|kv', 0, 'localhost', 123)
+ UDPSocket.any_instance.expects(:send).with("fooy:42|kv\n", 0, 'localhost', 123)
StatsD.gauge('fooy', 42)
end
@@ -178,7 +178,7 @@ def test_write_supports_statsite_gauge_timestamp
StatsD.server = 'localhost:123'
StatsD.implementation = :statsite
- UDPSocket.any_instance.expects(:send).with('fooy:42|kv|@123456', 0, 'localhost', 123)
+ UDPSocket.any_instance.expects(:send).with("fooy:42|kv|@123456\n", 0, 'localhost', 123)
StatsD.gauge('fooy', 42, 123456)
end

0 comments on commit 7423cc2

Please sign in to comment.