Skip to content

Commit 9adc745

Browse files
committed
More padding when asserting that the event timestamp is now.
- Not sure how to test this more deterministically.
1 parent bc4808a commit 9adc745

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/EventTest.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ public function testEventPostDefaultsToNow()
5151
$evPostOp = new EventPostOperation("films", "pulp_fiction", "comment", json_encode(["message" => "This is my favorite movie!"]));
5252
$evPostResult = self::$client->execute($evPostOp);
5353
$this->assertInstanceOf('SocalNick\Orchestrate\EventUpsertResult', $evPostResult);
54-
$this->assertGreaterThan(self::$now - 5000, $evPostResult->getTimestamp());
55-
$this->assertLessThan(self::$now + 5000, $evPostResult->getTimestamp());
54+
$this->assertGreaterThan(self::$now - 10000, $evPostResult->getTimestamp());
55+
$this->assertLessThan(self::$now + 10000, $evPostResult->getTimestamp());
5656
$this->assertTrue(is_numeric($evPostResult->getOrdinal()));
5757
}
5858

0 commit comments

Comments
 (0)