summaryrefslogtreecommitdiffstats
path: root/extras/hs-test/framework_test.go
diff options
context:
space:
mode:
authorAdrian Villin <avillin@cisco.com>2024-05-30 06:10:59 -0400
committerFlorin Coras <florin.coras@gmail.com>2024-05-30 15:59:01 +0000
commit93974e281e7f99309af259c615f7068dee600114 (patch)
treefcc533b653259bdeb9d2c3c23f914aa559729650 /extras/hs-test/framework_test.go
parentb9464cde7d3288f8feeeaf945ce933b276f07d82 (diff)
hs-test: set longer timeouts while debugging
Type: test Change-Id: I87baba7efa36dd40f086523b35bc6d3b0a26a1b5 Signed-off-by: Adrian Villin <avillin@cisco.com>
Diffstat (limited to 'extras/hs-test/framework_test.go')
-rw-r--r--extras/hs-test/framework_test.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/extras/hs-test/framework_test.go b/extras/hs-test/framework_test.go
index 8773fa2417d..8cbf936f026 100644
--- a/extras/hs-test/framework_test.go
+++ b/extras/hs-test/framework_test.go
@@ -2,12 +2,21 @@ package main
import (
"testing"
+ "time"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
)
+var suiteTimeout time.Duration
+
func TestHst(t *testing.T) {
+ if *isVppDebug {
+ // 30 minute timeout so that the framework won't timeout while debugging
+ suiteTimeout = time.Minute * 30
+ } else {
+ suiteTimeout = time.Minute * 5
+ }
RegisterFailHandler(Fail)
RunSpecs(t, "HST")
}