test/unit/tracer_test.rb in imprint-1.4.3.pre3 vs test/unit/tracer_test.rb in imprint-1.4.3.pre4

- old
+ new

@@ -9,11 +9,11 @@ end should "set trace timestamp" do fake_trace = "tracer" Timecop.freeze do - test_time = Time.now + test_time = Time.now.utc Imprint::Tracer.set_trace_id(fake_trace, fake_rack_env) # timecop has a bug with millisec time on osx # this makes the check ignore millisec assert !!Imprint::Tracer.get_trace_timestamp.to_s.match(/#{test_time.strftime("%Y-%m-%dT%H:%M:%S")}/) end @@ -27,10 +27,10 @@ assert_equal Imprint::Tracer::TRACE_ID_DEFAULT, Imprint::Tracer.get_trace_id end should "get trace timestamp defaults" do Timecop.freeze do - test_time = Time.now + test_time = Time.now.utc # timecop has a bug with millisec time on osx # this makes the check ignore millisec assert !!Imprint::Tracer.get_trace_timestamp.to_s.match(/#{test_time.strftime("%Y-%m-%dT%H:%M:%S")}/) end end