Skip to content

Commit

Permalink
Try to fix the flakiness
Browse files Browse the repository at this point in the history
  • Loading branch information
aduffeck committed Jun 3, 2024
1 parent c22ef64 commit 856f87c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .drone.star
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ def coverage():
},
},
"commands": [
"make test",
"git config --global --add safe.directory /drone/src; make test",
],
},
],
Expand Down Expand Up @@ -769,6 +769,7 @@ def posixfsIntegrationTests(parallelRuns, skipExceptParts = []):
"DIVIDE_INTO_NUM_PARTS": parallelRuns,
"RUN_PART": runPart,
"EXPECTED_FAILURES_FILE": "/drone/src/tests/acceptance/expected-failures-on-POSIX-storage.md",
"BEHAT_FEATURE": 'tests/acceptance/features/coreApiAuth/webDavSpecialURLs.feature:102',
},
},
],
Expand Down
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ test-go-version:

.PHONY: build-ci
build-ci: off
git config --global --add safe.directory '*'
go build -ldflags ${BUILD_FLAGS} -o ./cmd/revad/revad ./cmd/revad
go build -ldflags ${BUILD_FLAGS} -o ./cmd/reva/reva ./cmd/reva

Expand Down
5 changes: 2 additions & 3 deletions pkg/storage/fs/posix/tree/tree_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,11 @@ var _ = SynchronizedBeforeSuite(func() {
}

if strings.Contains(name, "inotifywait") {
// Give it some time to setup the watches
time.Sleep(2 * time.Second)
return true
}
}

// Give it some time to setup the watches
time.Sleep(2 * time.Second)
return false
}).Should(BeTrue())
}, func() {})
Expand Down

0 comments on commit 856f87c

Please sign in to comment.