Filip Tehlar | 229f5fc | 2022-08-09 14:44:47 +0000 | [diff] [blame] | 1 | package main |
2 | |||||
3 | import ( | ||||
Filip Tehlar | bb98aac | 2022-12-21 14:40:35 +0100 | [diff] [blame] | 4 | "testing" |
Adrian Villin | 93974e2 | 2024-05-30 06:10:59 -0400 | [diff] [blame^] | 5 | "time" |
Filip Tehlar | 229f5fc | 2022-08-09 14:44:47 +0000 | [diff] [blame] | 6 | |
Adrian Villin | cee15aa | 2024-03-14 11:42:55 -0400 | [diff] [blame] | 7 | . "github.com/onsi/ginkgo/v2" |
8 | . "github.com/onsi/gomega" | ||||
Filip Tehlar | 229f5fc | 2022-08-09 14:44:47 +0000 | [diff] [blame] | 9 | ) |
10 | |||||
Adrian Villin | 93974e2 | 2024-05-30 06:10:59 -0400 | [diff] [blame^] | 11 | var suiteTimeout time.Duration |
12 | |||||
Adrian Villin | cee15aa | 2024-03-14 11:42:55 -0400 | [diff] [blame] | 13 | func TestHst(t *testing.T) { |
Adrian Villin | 93974e2 | 2024-05-30 06:10:59 -0400 | [diff] [blame^] | 14 | if *isVppDebug { |
15 | // 30 minute timeout so that the framework won't timeout while debugging | ||||
16 | suiteTimeout = time.Minute * 30 | ||||
17 | } else { | ||||
18 | suiteTimeout = time.Minute * 5 | ||||
19 | } | ||||
Adrian Villin | cee15aa | 2024-03-14 11:42:55 -0400 | [diff] [blame] | 20 | RegisterFailHandler(Fail) |
21 | RunSpecs(t, "HST") | ||||
Maros Ondrejicka | c2f76f4 | 2023-02-27 13:22:45 +0100 | [diff] [blame] | 22 | } |