test/support/liboboe_settings_test.rb in oboe-2.6.6.1 vs test/support/liboboe_settings_test.rb in oboe-2.6.7.1
- old
+ new
@@ -3,11 +3,11 @@
require 'rack/lobster'
require 'oboe/inst/rack'
Oboe::Config[:tracing_mode] = 'always'
Oboe::Config[:sample_rate] = 1e6
-
+
class RackTestApp < Minitest::Test
include Rack::Test::Methods
def app
@app = Rack::Builder.new {
@@ -20,19 +20,19 @@
end
}
end
def test_localset_sample_source
- clear_all_traces
+ clear_all_traces
get "/lobster"
traces = get_all_traces
traces.count.must_equal 3
validate_outer_layers(traces, 'rack')
- kvs = {}
+ kvs = {}
kvs["SampleRate"] = "1000000"
kvs["SampleSource"] = OBOE_SAMPLE_RATE_SOURCE_FILE.to_s
validate_event_keys(traces[0], kvs)
end