Sha256: 00d328c4c78aed2e7bcfdfc2fb150601166b62f978f416ed4ca712d2e860463f

Contents?: true

Size: 453 Bytes

Versions: 36

Compression:

Stored size: 453 Bytes

Contents

require 'test_helper'

class IntegrationTest < Minitest::Test

  def setup
    @old_backend, StatsD.backend = StatsD.backend, StatsD::Instrument::Backends::UDPBackend.new("localhost:31798")
  end
  
  def teardown
    StatsD.backend = @old_backend
  end

  def test_live_local_udp_socket
    server = UDPSocket.new
    server.bind('localhost', 31798)

    StatsD.increment('counter')
    assert_equal "counter:1|c", server.recvfrom(100).first
  end
end

Version data entries

36 entries across 36 versions & 2 rubygems

Version Path
statsd-instrument-2.1.0 test/integration_test.rb
statsd-instrument-2.0.12 test/integration_test.rb
statsd-instrument-2.0.11 test/integration_test.rb
statsd-instrument-2.0.10 test/integration_test.rb
statsd-instrument-2.0.9 test/integration_test.rb
statsd-instrument-2.0.8 test/integration_test.rb
statsd-instrument-2.0.7 test/integration_test.rb
statsd-instrument-2.0.6 test/integration_test.rb
statsd-instrument-2.0.5 test/integration_test.rb
statsd-instrument-2.0.4 test/integration_test.rb
statsd-instrument-2.0.3 test/integration_test.rb
statsd-instrument-2.0.2 test/integration_test.rb
statsd-instrument-2.0.1 test/integration_test.rb
statsd-instrument-2.0.0 test/integration_test.rb
statsd-instrument-2.0.0beta2 test/integration_test.rb
statsd-instrument-2.0.0beta test/integration_test.rb