Commit 770dc7bd authored by Marcin Siodelski's avatar Marcin Siodelski
Browse files

[master] Fixed race in the Observation test.

Okayed on jabber.
parent 75ce722c
......@@ -139,9 +139,9 @@ TEST_F(ObservationTest, timers) {
ptime before = microsec_clock::local_time();
b.setValue(123.0); // Set it to a random value and record the time.
// Allow a bit of imprecision. This test allows 50ms. That should be ok,
// Allow a bit of imprecision. This test allows 500ms. That should be ok,
// when running on virtual machines.
ptime after = before + millisec::time_duration(0,0,0,50);
ptime after = before + milliseconds(500);
// Now wait some time. We want to confirm that the timestamp recorded is the
// time the observation took place, not current time.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment