summaryrefslogtreecommitdiffstats
path: root/extras/hs-test/framework_test.go
blob: 8cbf936f0266182053111e33c0f9422b64d09e96 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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")
}