Skip to content

Commit 5d91c3c

Browse files
committed
fix assert require in tests
1 parent c4408e1 commit 5d91c3c

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

tools/integration_tests/concurrent_operations/concurrent_listing_test.go

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ func createDirectoryStructureForTestCase(t *testing.T, testCaseDir string) {
8080
// Test_OpenDirAndLookUp helps in detecting the deadlock when
8181
// OpenDir() and LookUpInode() request for same directory comes in parallel.
8282
func (s *concurrentListingTest) Test_OpenDirAndLookUp(t *testing.T) {
83-
t.Parallel() // Mark the test parallelizable.
83+
// t.Parallel() // Mark the test parallelizable.
8484
testCaseDir := "Test_OpenDirAndLookUp"
8585
createDirectoryStructureForTestCase(t, testCaseDir)
8686
targetDir := path.Join(testDirPath, testCaseDir, "explicitDir")
@@ -127,7 +127,7 @@ func (s *concurrentListingTest) Test_OpenDirAndLookUp(t *testing.T) {
127127
// Test_Parallel_ReadDirAndLookUp tests for potential deadlocks or race conditions when
128128
// ReadDir() is called concurrently with LookUp of same dir.
129129
func (s *concurrentListingTest) Test_Parallel_ReadDirAndLookUp(t *testing.T) {
130-
t.Parallel() // Mark the test parallelizable.
130+
// t.Parallel() // Mark the test parallelizable.
131131
testCaseDir := "Test_Parallel_ReadDirAndLookUp"
132132
createDirectoryStructureForTestCase(t, testCaseDir)
133133
targetDir := path.Join(testDirPath, testCaseDir, "explicitDir")
@@ -177,7 +177,7 @@ func (s *concurrentListingTest) Test_Parallel_ReadDirAndLookUp(t *testing.T) {
177177
// Test_MultipleConcurrentReadDir tests for potential deadlocks or race conditions
178178
// when multiple goroutines call Readdir() concurrently on the same directory.
179179
func (s *concurrentListingTest) Test_MultipleConcurrentReadDir(t *testing.T) {
180-
t.Parallel() // Mark the test parallelizable.
180+
// t.Parallel() // Mark the test parallelizable.
181181
testCaseDir := "Test_MultipleConcurrentReadDir"
182182
createDirectoryStructureForTestCase(t, testCaseDir)
183183
targetDir := path.Join(testDirPath, testCaseDir, "explicitDir")
@@ -222,7 +222,7 @@ func (s *concurrentListingTest) Test_MultipleConcurrentReadDir(t *testing.T) {
222222
// Test_Parallel_ReadDirAndFileOperations detects race conditions and deadlocks when one goroutine
223223
// performs Readdir() while another concurrently creates and deletes files in the same directory.
224224
func (s *concurrentListingTest) Test_Parallel_ReadDirAndFileOperations(t *testing.T) {
225-
t.Parallel() // Mark the test parallelizable.
225+
// t.Parallel() // Mark the test parallelizable.
226226
testCaseDir := "Test_Parallel_ReadDirAndFileOperations"
227227
createDirectoryStructureForTestCase(t, testCaseDir)
228228
targetDir := path.Join(testDirPath, testCaseDir, "explicitDir")
@@ -287,7 +287,7 @@ func (s *concurrentListingTest) Test_Parallel_ReadDirAndFileOperations(t *testin
287287
// Test_Parallel_ReadDirAndDirOperations tests for potential deadlocks or race conditions when
288288
// ReadDir() is called concurrently with directory creation and deletion operations.
289289
func (s *concurrentListingTest) Test_Parallel_ReadDirAndDirOperations(t *testing.T) {
290-
t.Parallel() // Mark the test parallelizable.
290+
// t.Parallel() // Mark the test parallelizable.
291291
testCaseDir := "Test_Parallel_ReadDirAndDirOperations"
292292
createDirectoryStructureForTestCase(t, testCaseDir)
293293
targetDir := path.Join(testDirPath, testCaseDir, "explicitDir")
@@ -349,7 +349,7 @@ func (s *concurrentListingTest) Test_Parallel_ReadDirAndDirOperations(t *testing
349349
// Test_Parallel_ReadDirAndFileEdit tests for potential deadlocks or race conditions when
350350
// ReadDir() is called concurrently with modification of underneath file.
351351
func (s *concurrentListingTest) Test_Parallel_ReadDirAndFileEdit(t *testing.T) {
352-
t.Parallel() // Mark the test parallelizable.
352+
// t.Parallel() // Mark the test parallelizable.
353353
testCaseDir := "Test_Parallel_ListDirAndFileEdit"
354354
createDirectoryStructureForTestCase(t, testCaseDir)
355355
targetDir := path.Join(testDirPath, testCaseDir, "explicitDir")
@@ -410,7 +410,7 @@ func (s *concurrentListingTest) Test_Parallel_ReadDirAndFileEdit(t *testing.T) {
410410
// Test_MultipleConcurrentOperations tests for potential deadlocks or race conditions when
411411
// listing, file or folder operations, stat, opendir, file modifications happening concurrently.
412412
func (s *concurrentListingTest) Test_MultipleConcurrentOperations(t *testing.T) {
413-
t.Parallel() // Mark the test parallelizable.
413+
// t.Parallel() // Mark the test parallelizable.
414414
testCaseDir := "Test_MultipleConcurrentOperations"
415415
createDirectoryStructureForTestCase(t, testCaseDir)
416416
targetDir := path.Join(testDirPath, testCaseDir, "explicitDir")
@@ -513,7 +513,7 @@ func (s *concurrentListingTest) Test_MultipleConcurrentOperations(t *testing.T)
513513
// Test_ListWithMoveFile tests for potential deadlocks or race conditions when
514514
// listing, file or folder operations, move file happening concurrently.
515515
func (s *concurrentListingTest) Test_ListWithMoveFile(t *testing.T) {
516-
t.Parallel() // Mark the test parallelizable.
516+
// t.Parallel() // Mark the test parallelizable.
517517
testCaseDir := "Test_ListWithMoveFile"
518518
createDirectoryStructureForTestCase(t, testCaseDir)
519519
targetDir := path.Join(testDirPath, testCaseDir, "explicitDir")
@@ -570,7 +570,7 @@ func (s *concurrentListingTest) Test_ListWithMoveFile(t *testing.T) {
570570
// Test_ListWithMoveDir tests for potential deadlocks or race conditions when
571571
// listing, file or folder operations, move dir happening concurrently.
572572
func (s *concurrentListingTest) Test_ListWithMoveDir(t *testing.T) {
573-
t.Parallel() // Mark the test parallelizable.
573+
// t.Parallel() // Mark the test parallelizable.
574574
testCaseDir := "Test_ListWithMoveDir"
575575
createDirectoryStructureForTestCase(t, testCaseDir)
576576
targetDir := path.Join(testDirPath, testCaseDir, "explicitDir")

0 commit comments

Comments
 (0)