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/suite_veth_test.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/suite_veth_test.go')
-rw-r--r-- | extras/hs-test/suite_veth_test.go | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/extras/hs-test/suite_veth_test.go b/extras/hs-test/suite_veth_test.go index d0991271b36..de4812d7f97 100644 --- a/extras/hs-test/suite_veth_test.go +++ b/extras/hs-test/suite_veth_test.go @@ -53,9 +53,7 @@ func (s *VethsSuite) SetupTest() { func (s *VethsSuite) setupServerVpp() { serverVpp := s.getContainerByName("server-vpp").vppInstance - - err := serverVpp.start() - s.assertNil(err) + s.assertNil(serverVpp.start()) serverVeth := s.netInterfaces[serverInterfaceName] idx, err := serverVpp.createAfPacket(serverVeth) @@ -65,9 +63,7 @@ func (s *VethsSuite) setupServerVpp() { func (s *VethsSuite) setupClientVpp() { clientVpp := s.getContainerByName("client-vpp").vppInstance - - err := clientVpp.start() - s.assertNil(err) + s.assertNil(clientVpp.start()) clientVeth := s.netInterfaces[clientInterfaceName] idx, err := clientVpp.createAfPacket(clientVeth) |