Skip to content

Commit afac690

Browse files
author
Rafael Marinho
committed
fix test
1 parent f8f4760 commit afac690

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tests/integration/IntegrationTest.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1782,12 +1782,13 @@ public function testCreateSharedLocation()
17821782
"config_overrides" => ["shared_locations" => true],
17831783
]);
17841784

1785+
$endAt = new \DateTime('+1 hour');
17851786
// Create a shared location message
17861787
$sharedLocation = [
17871788
'latitude' => 40.7128,
17881789
'longitude' => -74.0060,
17891790
'created_by_device_id' => 'test-device-123',
1790-
'end_at' => new DateTime('+1 hour') // 1 hour from now
1791+
'end_at' => $endAt->format('Y-m-d\TH:i:s.u\Z')
17911792
];
17921793

17931794
$message = [
@@ -1812,12 +1813,13 @@ public function testUpdateSharedLocation()
18121813
"config_overrides" => ["shared_locations" => true],
18131814
]);
18141815

1816+
$endAt = new \DateTime('+1 hour');
18151817
// First create a shared location message
18161818
$initialLocation = [
18171819
'latitude' => 40.7128,
18181820
'longitude' => -74.0060,
18191821
'created_by_device_id' => 'test-device-123',
1820-
'end_at' => new DateTime('+1 hour')
1822+
'end_at' => $endAt->format('Y-m-d\TH:i:s.u\Z')
18211823
];
18221824

18231825
$message = [

0 commit comments

Comments
 (0)