hs-test: add more asserts
Type: test
Change-Id: Ia285ff39d9b19464ea086ec847ceaf52c6c0195c
Signed-off-by: Filip Tehlar <ftehlar@cisco.com>
diff --git a/extras/hs-test/vppinstance.go b/extras/hs-test/vppinstance.go
index e909b85..1a058c8 100644
--- a/extras/hs-test/vppinstance.go
+++ b/extras/hs-test/vppinstance.go
@@ -159,6 +159,7 @@
core.DefaultReconnectInterval)
if err != nil {
fmt.Println("async connect error: ", err)
+ return err
}
vpp.connection = conn
@@ -172,12 +173,15 @@
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