Commit 1d7f2fc2 authored by Manan Jadhav's avatar Manan Jadhav

account for millsecond differences in execution

parent c084a2c5
......@@ -441,7 +441,7 @@ class ModelTest extends TestCase
Carbon::setTestNow($fakeDate);
$item = Item::create(['name' => 'sword']);
$this->assertEquals($item->created_at, $fakeDate);
$this->assertLessThan($fakeDate->diffInSeconds($item->created_at), 1);
}
public function testIdAttribute(): void
......
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