diff options
author | Adrian Villin <avillin@cisco.com> | 2024-05-15 04:33:41 -0400 |
---|---|---|
committer | Dave Wallace <dwallacelf@gmail.com> | 2024-05-17 03:11:13 +0000 |
commit | 46d66000fbccaaf782ca0313107355c77768f164 (patch) | |
tree | ed8fe48244b2d459244816ca43d9b832bd3586b6 /extras/hs-test/hst_suite.go | |
parent | f66702df6bfc24072a40ad39ffa9ff7099e50f32 (diff) |
hs-test: updated api calls
Type: test
Change-Id: I2583ee74426ef154d03d4991b78ab57c5cec436f
Signed-off-by: Adrian Villin <avillin@cisco.com>
Diffstat (limited to 'extras/hs-test/hst_suite.go')
-rw-r--r-- | extras/hs-test/hst_suite.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/extras/hs-test/hst_suite.go b/extras/hs-test/hst_suite.go index 725fee73f24..35553f00ff3 100644 --- a/extras/hs-test/hst_suite.go +++ b/extras/hs-test/hst_suite.go @@ -40,8 +40,8 @@ type HstSuite struct { cpuContexts []*CpuContext cpuPerVpp int pid string - logger *log.Logger - logFile *os.File + logger *log.Logger + logFile *os.File } func (s *HstSuite) SetupSuite() { @@ -196,7 +196,7 @@ func (s *HstSuite) assertNotEmpty(object interface{}, msgAndArgs ...interface{}) Expect(object).ToNot(BeEmpty(), msgAndArgs...) } -func (s *HstSuite) createLogger(){ +func (s *HstSuite) createLogger() { suiteName := CurrentSpecReport().ContainerHierarchyTexts[0] var err error s.logFile, err = os.Create("summary/" + suiteName + ".log") @@ -475,7 +475,7 @@ func (s *HstSuite) startHttpServer(running chan struct{}, done chan struct{}, ad err := cmd.Start() s.log(cmd) if err != nil { - fmt.Println("Failed to start http server: " + fmt.Sprint(err)) + s.log("Failed to start http server: " + fmt.Sprint(err)) return } running <- struct{}{} |