Skip to content

Commit b81a97b

Browse files
committed
Fix test
1 parent 134316b commit b81a97b

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

Firestore/core/test/unit/local/globals_cache_test.cc

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ TEST_P(GlobalsCacheTest, ReturnsEmptyBytestringWhenSessionTokenNotFound) {
3939
persistence_->Run(
4040
"test_returns_empty_bytestring_when_session_token_not_found", [&] {
4141
auto expected = ByteString();
42-
EXPECT_EQ(cache_->GetSessionToken(), expected);
42+
EXPECT_EQ(cache_->GetSessionToken().CompareTo(expected),
43+
ComparisonResult::Same);
4344
});
4445
}
4546

@@ -48,15 +49,15 @@ TEST_P(GlobalsCacheTest, ReturnsSavedSessionToken) {
4849
auto expected = ByteString("magic");
4950
cache_->SetSessionToken(expected);
5051

51-
auto actual = cache_->GetSessionToken();
52-
EXPECT_EQ(actual, expected);
52+
EXPECT_EQ(cache_->GetSessionToken().CompareTo(expected),
53+
ComparisonResult::Same);
5354

5455
// Overwrite
5556
expected = ByteString("science");
5657
cache_->SetSessionToken(expected);
5758

58-
actual = cache_->GetSessionToken();
59-
EXPECT_EQ(actual, expected);
59+
EXPECT_EQ(cache_->GetSessionToken().CompareTo(expected),
60+
ComparisonResult::Same);
6061
});
6162
}
6263

0 commit comments

Comments
 (0)