Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

testutil/compose: custom timeout for fuzzer #2952

Merged
merged 1 commit into from
Mar 7, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions testutil/compose/fuzz/fuzz_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ var (
fuzzer = flag.Bool("fuzzer", false, "Enables docker based fuzz tests")
sudoPerms = flag.Bool("sudo-perms", false, "Enables changing all compose artefacts file permissions using sudo.")
logDir = flag.String("log-dir", "", "Specifies the directory to store test docker-compose logs. Empty defaults to stdout.")
timeout = flag.Duration("fuzz-timeout", time.Minute*20, "Timeout after which, if there were no failures, the fuzzing will stop.")
)

func TestFuzzers(t *testing.T) {
Expand All @@ -46,7 +47,7 @@ func TestFuzzers(t *testing.T) {

return config
},
timeout: time.Minute * 20,
timeout: *timeout,
},
{
name: "p2p_fuzz_tests",
Expand All @@ -55,7 +56,7 @@ func TestFuzzers(t *testing.T) {

return config
},
timeout: time.Minute * 20,
timeout: *timeout,
},
}

Expand Down
Loading