1
0
Fork 0
mirror of https://github.com/kubernetes-sigs/node-feature-discovery.git synced 2024-12-14 11:57:51 +00:00

Increase timeout in test setups

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.

(cherry picked from commit cf1bc4a34d)
This commit is contained in:
Mohammed Naser 2022-01-20 18:59:30 -05:00 committed by Markus Lehtonen
parent c3d8a32ce1
commit eb52844b29
2 changed files with 2 additions and 2 deletions

View file

@ -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)

View file

@ -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)