hs-test: set longer timeouts while debugging
Type: test Change-Id: I87baba7efa36dd40f086523b35bc6d3b0a26a1b5 Signed-off-by: Adrian Villin <avillin@cisco.com>
This commit is contained in:

committed by
Florin Coras

parent
b9464cde7d
commit
93974e281e
@@ -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")
|
||||
}
|
||||
|
Reference in New Issue
Block a user