Skip to content

Commit 89e2791

Browse files
committed
Issue with test
1 parent a204cf0 commit 89e2791

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/Feature/Api/TaskAssignmentExecutionTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -155,13 +155,13 @@ public function testDueDate()
155155
// Verify status
156156
$response->assertStatus(201);
157157
// Get the ProcessRequest
158-
$currentDate = Carbon::now();
158+
$expectedDueDate = Carbon::now()->addHours(24);
159159
$task = ProcessRequestToken::where([
160160
'process_request_id' => $response['id'],
161161
'status' => 'ACTIVE',
162162
])->firstOrFail();
163-
164-
$this->assertGreaterThanOrEqual($task->due_at, $currentDate);
163+
164+
$this->assertTrue($task->due_at->greaterThanOrEqualTo($expectedDueDate));
165165
}
166166

167167
public function testSelfServeAssignment()

0 commit comments

Comments
 (0)