mirror of
https://github.com/kubernetes-sigs/node-feature-discovery.git
synced 2025-03-17 05:48:21 +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:
parent
c3d8a32ce1
commit
eb52844b29
2 changed files with 2 additions and 2 deletions
|
@ -53,7 +53,7 @@ func setupTest(args *nfdmaster.Args) testContext {
|
||||||
ctx.errs <- ctx.master.Run()
|
ctx.errs <- ctx.master.Run()
|
||||||
close(ctx.errs)
|
close(ctx.errs)
|
||||||
}()
|
}()
|
||||||
ready := ctx.master.WaitForReady(time.Second)
|
ready := ctx.master.WaitForReady(5 * time.Second)
|
||||||
if !ready {
|
if !ready {
|
||||||
fmt.Println("Test setup failed: timeout while waiting for nfd-master")
|
fmt.Println("Test setup failed: timeout while waiting for nfd-master")
|
||||||
os.Exit(1)
|
os.Exit(1)
|
||||||
|
|
|
@ -54,7 +54,7 @@ func setupTest(args *master.Args) testContext {
|
||||||
ctx.errs <- ctx.master.Run()
|
ctx.errs <- ctx.master.Run()
|
||||||
close(ctx.errs)
|
close(ctx.errs)
|
||||||
}()
|
}()
|
||||||
ready := ctx.master.WaitForReady(time.Second)
|
ready := ctx.master.WaitForReady(5 * time.Second)
|
||||||
if !ready {
|
if !ready {
|
||||||
fmt.Println("Test setup failed: timeout while waiting for nfd-master")
|
fmt.Println("Test setup failed: timeout while waiting for nfd-master")
|
||||||
os.Exit(1)
|
os.Exit(1)
|
||||||
|
|
Loading…
Add table
Reference in a new issue