Skip to content

Commit a0e817f

Browse files
committed
fix ci
1 parent 9c16081 commit a0e817f

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

‎src/paimon/core/catalog/renaming_snapshot_commit_test.cpp‎

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,8 @@ TEST(RenamingSnapshotCommitTest, TestAtomicStoreErrorWithMatchingSnapshotIsSucce
125125
Snapshot snapshot = BuildTestSnapshot(1);
126126
AtomicStoreMockFileSystem* fs_ptr = fs.get();
127127

128-
EXPECT_CALL(*fs, AtomicStore(testing::_, testing::_))
128+
EXPECT_CALL(*fs,
129+
AtomicStore(testing::A<const std::string&>(), testing::A<const std::string&>()))
129130
.WillOnce(testing::Invoke(
130131
[fs_ptr](const std::string& path, const std::string& content) -> Status {
131132
PAIMON_RETURN_NOT_OK(fs_ptr->FileSystem::AtomicStore(path, content));
@@ -150,7 +151,8 @@ TEST(RenamingSnapshotCommitTest, TestAtomicStoreErrorWithConflictingSnapshotRetu
150151
ASSERT_OK_AND_ASSIGN(std::string conflicting_json, BuildTestSnapshot(2).ToJsonString());
151152
AtomicStoreMockFileSystem* fs_ptr = fs.get();
152153

153-
EXPECT_CALL(*fs, AtomicStore(testing::_, testing::_))
154+
EXPECT_CALL(*fs,
155+
AtomicStore(testing::A<const std::string&>(), testing::A<const std::string&>()))
154156
.WillOnce(testing::Invoke(
155157
[fs_ptr, &conflicting_json](const std::string& path, const std::string&) -> Status {
156158
PAIMON_RETURN_NOT_OK(fs_ptr->FileSystem::AtomicStore(path, conflicting_json));
@@ -173,7 +175,8 @@ TEST(RenamingSnapshotCommitTest, TestAtomicStoreErrorWithMissingSnapshotReturnsE
173175
auto commit = std::make_shared<RenamingSnapshotCommit>(fs, snapshot_manager);
174176
Snapshot snapshot = BuildTestSnapshot(1);
175177

176-
EXPECT_CALL(*fs, AtomicStore(testing::_, testing::_))
178+
EXPECT_CALL(*fs,
179+
AtomicStore(testing::A<const std::string&>(), testing::A<const std::string&>()))
177180
.WillOnce(testing::Return(Status::IOError("atomic store failed")));
178181

179182
ASSERT_NOK_WITH_MSG(

0 commit comments

Comments
 (0)