diff options
author | Filip Tehlar <ftehlar@cisco.com> | 2024-01-11 17:17:33 +0100 |
---|---|---|
committer | Florin Coras <florin.coras@gmail.com> | 2024-01-11 19:45:06 +0000 |
commit | 56e17cf7a23831b353bc1836def47dad7f869dad (patch) | |
tree | e78fc35d94222a473c83a5e707f7e8e61d1b5914 /extras/hs-test/vppinstance.go | |
parent | ba39d86eeccba78c92ef275fd48ab4c6d653a997 (diff) |
hs-test: add more asserts
Type: test
Change-Id: Ia285ff39d9b19464ea086ec847ceaf52c6c0195c
Signed-off-by: Filip Tehlar <ftehlar@cisco.com>
Diffstat (limited to 'extras/hs-test/vppinstance.go')
-rw-r--r-- | extras/hs-test/vppinstance.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/extras/hs-test/vppinstance.go b/extras/hs-test/vppinstance.go index e909b85abba..1a058c8e0e3 100644 --- a/extras/hs-test/vppinstance.go +++ b/extras/hs-test/vppinstance.go @@ -159,6 +159,7 @@ func (vpp *VppInstance) start() error { core.DefaultReconnectInterval) if err != nil { fmt.Println("async connect error: ", err) + return err } vpp.connection = conn @@ -172,12 +173,15 @@ func (vpp *VppInstance) start() error { ch, err := conn.NewAPIChannel() if err != nil { fmt.Println("creating channel failed: ", err) + return err } if err := ch.CheckCompatiblity(vpe.AllMessages()...); err != nil { fmt.Println("compatibility error: ", err) + return err } if err := ch.CheckCompatiblity(interfaces.AllMessages()...); err != nil { fmt.Println("compatibility error: ", err) + return err } vpp.apiChannel = ch |