Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix statsite tests

  • Loading branch information...
commit 7423cc2b6014269f3fbaaa18c27e0656f2a297b7 1 parent 688c503
@titanous titanous authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 test/statsd-instrument_test.rb
View
4 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
Please sign in to comment.
Something went wrong with that request. Please try again.