diff --git a/src/test/fspp/fuse/flush/FuseFlushErrorTest.cpp b/src/test/fspp/fuse/flush/FuseFlushErrorTest.cpp index b9c0d31f..91ebff85 100644 --- a/src/test/fspp/fuse/flush/FuseFlushErrorTest.cpp +++ b/src/test/fspp/fuse/flush/FuseFlushErrorTest.cpp @@ -22,8 +22,6 @@ TEST_P(FuseFlushErrorTest, ReturnErrorFromFlush) { EXPECT_CALL(fsimpl, openFile(StrEq(FILENAME), _)).WillOnce(Return(GetParam())); EXPECT_CALL(fsimpl, flush(Eq(GetParam()))).Times(1).WillOnce(Throw(FuseErrnoException(GetParam()))); - // Allow calls to closeFile(), but don't enforce them - EXPECT_CALL(fsimpl, closeFile(Eq(GetParam()))).Times(AtLeast(0)); auto fs = TestFS(); int fd = OpenFile(fs.get(), FILENAME); diff --git a/src/test/fspp/fuse/flush/FuseFlushFileDescriptorTest.cpp b/src/test/fspp/fuse/flush/FuseFlushFileDescriptorTest.cpp index 341fe062..11e14bcb 100644 --- a/src/test/fspp/fuse/flush/FuseFlushFileDescriptorTest.cpp +++ b/src/test/fspp/fuse/flush/FuseFlushFileDescriptorTest.cpp @@ -30,8 +30,6 @@ TEST_P(FuseFlushFileDescriptorTest, FlushOnCloseFile) { EXPECT_CALL(fsimpl, openFile(StrEq(FILENAME), _)).WillOnce(Return(GetParam())); EXPECT_CALL(fsimpl, flush(Eq(GetParam()))).Times(1); - // Allow calls to closeFile(), but don't enforce them - EXPECT_CALL(fsimpl, closeFile(Eq(GetParam()))).Times(AtLeast(0)); OpenAndCloseFile(FILENAME); }