Skip to content

Commit

Permalink
Change UpdateChildren test to use remote timestamp.
Browse files Browse the repository at this point in the history
  • Loading branch information
jonsimantov committed Jan 22, 2024
1 parent 0a9e6c7 commit aeb22f4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions database/integration_test/src/integration_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -698,8 +698,8 @@ TEST_F(FirebaseDatabaseTest, TestUpdateChildren) {
WaitForCompletion(update_future, "UpdateChildren");
read_future = ref.Child(test_name).GetValue();
WaitForCompletion(read_future, "GetValue 2");
int64_t current_time_milliseconds =
static_cast<int64_t>(time(nullptr)) * 1000L;
int64_t current_time_milliseconds = GetRemoteTimeInMilliseconds();

EXPECT_THAT(
read_future.result()->value().map(),
UnorderedElementsAre(
Expand Down

0 comments on commit aeb22f4

Please sign in to comment.