Skip to content

Commit d2cc7ff

Browse files
committed
Fix local file test not running on dynamic mounts
1 parent 79eba44 commit d2cc7ff

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎tools/integration_tests/local_file/read_dir_test.go‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,10 @@ func creatingNLocalFilesShouldNotThrowError(n int, wg *sync.WaitGroup, t *testin
4444
}
4545
}
4646

47-
func readingDirNTimesShouldNotThrowError(n int, wg *sync.WaitGroup, t *testing.T) {
47+
func readingDirNTimesShouldNotThrowError(dirPath string, n int, wg *sync.WaitGroup, t *testing.T) {
4848
defer wg.Done()
4949
for i := range n {
50-
_, err := os.ReadDir(setup.MntDir())
50+
_, err := os.ReadDir(dirPath)
5151
if err != nil {
5252
t.Errorf("Error while reading directory %dth time: %v", i, err)
5353
}
@@ -185,7 +185,7 @@ func (t *LocalFileTestSuite) TestConcurrentReadDirAndCreationOfLocalFiles_DoesNo
185185

186186
// Concurrently create 100 local files and read directory 200 times.
187187
go creatingNLocalFilesShouldNotThrowError(100, &wg, t.T())
188-
go readingDirNTimesShouldNotThrowError(200, &wg, t.T())
188+
go readingDirNTimesShouldNotThrowError(testDirPath, 200, &wg, t.T())
189189

190190
wg.Wait()
191191
}

0 commit comments

Comments
 (0)
⌂ 换网址