From 64609389150c025c7f0da220b254db7ea6ef44cf Mon Sep 17 00:00:00 2001 From: Darya Frolova Date: Fri, 27 Sep 2024 11:59:23 +0000 Subject: [PATCH] fix test ShouldProcessDestroyHandleRequestsAsynchronously --- cloud/filestore/libs/vfs_fuse/fs_ut.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/cloud/filestore/libs/vfs_fuse/fs_ut.cpp b/cloud/filestore/libs/vfs_fuse/fs_ut.cpp index e1076053902..e27cebda10f 100644 --- a/cloud/filestore/libs/vfs_fuse/fs_ut.cpp +++ b/cloud/filestore/libs/vfs_fuse/fs_ut.cpp @@ -1446,7 +1446,7 @@ Y_UNIT_TEST_SUITE(TFileSystemTest) { UNIT_ASSERT_VALUES_EQUAL( 1, - counters->GetCounter("InProgress")->GetAtomic()); + AtomicGet(counters->GetCounter("InProgress")->GetAtomic())); UNIT_ASSERT_VALUES_EQUAL( FileSystemId, @@ -1481,7 +1481,9 @@ Y_UNIT_TEST_SUITE(TFileSystemTest) destroyFinished.GetFuture().Wait(WaitTimeout); UNIT_ASSERT_VALUES_EQUAL(2U, handlerCalled.load()); - UNIT_ASSERT_VALUES_EQUAL(0, counters->GetCounter("InProgress")->GetAtomic()); + UNIT_ASSERT_VALUES_EQUAL( + 0, + AtomicGet(counters->GetCounter("InProgress")->GetAtomic())); } Y_UNIT_TEST(ShouldRetryDestroyIfNotSuccessDuringAsyncProcessing)