Skip to content

Commit

Permalink
Increase timeout in test setups
Browse files Browse the repository at this point in the history
This patch increases the timeout when setting up the NFD master
to 5 seconds instead of 1 second to allow for running tests in
slow environments.
  • Loading branch information
mnaser committed Jan 20, 2022
1 parent f51cdd0 commit cf1bc4a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ func setupTest(args *nfdmaster.Args) testContext {
ctx.errs <- ctx.master.Run()
close(ctx.errs)
}()
ready := ctx.master.WaitForReady(time.Second)
ready := ctx.master.WaitForReady(5 * time.Second)
if !ready {
fmt.Println("Test setup failed: timeout while waiting for nfd-master")
os.Exit(1)
Expand Down
2 changes: 1 addition & 1 deletion pkg/nfd-client/worker/nfd-worker_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ func setupTest(args *master.Args) testContext {
ctx.errs <- ctx.master.Run()
close(ctx.errs)
}()
ready := ctx.master.WaitForReady(time.Second)
ready := ctx.master.WaitForReady(5 * time.Second)
if !ready {
fmt.Println("Test setup failed: timeout while waiting for nfd-master")
os.Exit(1)
Expand Down

0 comments on commit cf1bc4a

Please sign in to comment.