Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
ray6080 committed May 24, 2024
1 parent ded3cde commit 74dc946
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions test/storage/node_insertion_deletion_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,7 @@ TEST_F(NodeInsertionDeletionTests, TruncatedWalTest) {
// Close database
database.reset();
{
auto walFileInfo =
fs.openFile(walPath, FileFlags::FILE_FLAGS_READ | FileFlags::FILE_FLAGS_WRITE);
auto walFileInfo = fs.openFile(walPath, FileFlags::READ_ONLY | FileFlags::WRITE);
ASSERT_GT(walFileInfo->getFileSize(), BufferPoolConstants::PAGE_4KB_SIZE)
<< "Test needs a wal file with more than one page";
walFileInfo->truncate(BufferPoolConstants::PAGE_4KB_SIZE);
Expand Down

0 comments on commit 74dc946

Please sign in to comment.