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
qubole-statsd-instrument-2.1.6 test/integration_test.rb
statsd-instrument-2.3.5 test/integration_test.rb
statsd-instrument-2.3.4 test/integration_test.rb
qubole-statsd-instrument-2.1.5 test/integration_test.rb
statsd-instrument-2.3.2 test/integration_test.rb
statsd-instrument-2.3.1 test/integration_test.rb
qubole-statsd-instrument-2.1.4 test/integration_test.rb
statsd-instrument-2.3.0 test/integration_test.rb
statsd-instrument-2.3.0.beta6 test/integration_test.rb
statsd-instrument-2.3.0.beta5 test/integration_test.rb
statsd-instrument-2.3.0.beta4 test/integration_test.rb
statsd-instrument-2.3.0.beta3 test/integration_test.rb
statsd-instrument-2.3.0.beta2 test/integration_test.rb
statsd-instrument-2.3.0.beta test/integration_test.rb
statsd-instrument-2.2.1 test/integration_test.rb
statsd-instrument-2.2.0 test/integration_test.rb
statsd-instrument-2.1.4 test/integration_test.rb
statsd-instrument-2.1.3 test/integration_test.rb
statsd-instrument-2.1.2 test/integration_test.rb
statsd-instrument-2.1.1 test/integration_test.rb