From cf1bc4a34d15d89c4bd24815338b7e96d8445808 Mon Sep 17 00:00:00 2001 From: Mohammed Naser Date: Thu, 20 Jan 2022 18:59:30 -0500 Subject: [PATCH] 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. --- pkg/nfd-client/topology-updater/nfd-topology-updater_test.go | 2 +- pkg/nfd-client/worker/nfd-worker_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/nfd-client/topology-updater/nfd-topology-updater_test.go b/pkg/nfd-client/topology-updater/nfd-topology-updater_test.go index e06d770c9..9f8434b99 100644 --- a/pkg/nfd-client/topology-updater/nfd-topology-updater_test.go +++ b/pkg/nfd-client/topology-updater/nfd-topology-updater_test.go @@ -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) diff --git a/pkg/nfd-client/worker/nfd-worker_test.go b/pkg/nfd-client/worker/nfd-worker_test.go index 33892ea8a..adf2b84f1 100644 --- a/pkg/nfd-client/worker/nfd-worker_test.go +++ b/pkg/nfd-client/worker/nfd-worker_test.go @@ -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)