Skip to content

Commit

Permalink
fix: correct folder permission for path traverser unit-test
Browse files Browse the repository at this point in the history
  • Loading branch information
pkoutsovasilis committed Jan 31, 2024
1 parent d779054 commit c985aaf
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions auditbeat/module/file_integrity/kprobes/path_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ func (p *pathTestSuite) TestRecursiveWalkAsync() {
createdPathsOrder = append(createdPathsOrder, tmpDir)

testDir := filepath.Join(tmpDir, "test_dir")
err = os.Mkdir(testDir, 0o644)
err = os.Mkdir(testDir, 0o744)
p.Require().NoError(err)
createdPathsWithDepth[testDir] = 2
createdPathsOrder = append(createdPathsOrder, testDir)
Expand Down Expand Up @@ -227,7 +227,7 @@ func (p *pathTestSuite) TestNonRecursiveWalkAsync() {
createdPathsOrder = append(createdPathsOrder, tmpDir)

testDir := filepath.Join(tmpDir, "test_dir")
err = os.Mkdir(testDir, 0o644)
err = os.Mkdir(testDir, 0o744)
p.Require().NoError(err)

testDirTestFile := filepath.Join(tmpDir, "test_dir", "test_file")
Expand Down Expand Up @@ -404,7 +404,7 @@ func (p *pathTestSuite) TestRecursiveAdd() {
createdPathsOrder = append(createdPathsOrder, tmpDir)

testDir := filepath.Join(tmpDir, "test_dir")
err = os.Mkdir(testDir, 0o644)
err = os.Mkdir(testDir, 0o744)
p.Require().NoError(err)
createdPathsWithDepth[testDir] = 1
createdPathsOrder = append(createdPathsOrder, testDir)
Expand Down Expand Up @@ -514,7 +514,7 @@ func (p *pathTestSuite) TestNonRecursiveAdd() {
createdPathsOrder = append(createdPathsOrder, tmpDir)

testDir := filepath.Join(tmpDir, "test_dir")
err = os.Mkdir(testDir, 0o644)
err = os.Mkdir(testDir, 0o744)
p.Require().NoError(err)
createdPathsWithDepth[testDir] = 1
createdPathsOrder = append(createdPathsOrder, testDir)
Expand Down Expand Up @@ -638,7 +638,7 @@ func (p *pathTestSuite) TestStatErrAtWalk() {
}()

testDir := filepath.Join(tmpDir, "test_dir")
err = os.Mkdir(testDir, 0o644)
err = os.Mkdir(testDir, 0o744)
p.Require().NoError(err)

testDirTestFile := filepath.Join(tmpDir, "test_dir", "test_file")
Expand Down

0 comments on commit c985aaf

Please sign in to comment.