hs-test: fix vppConnectUdpStressLoad panic 11/42311/2
authorMatus Fabian <[email protected]>
Wed, 5 Feb 2025 09:04:56 +0000 (04:04 -0500)
committerFlorin Coras <[email protected]>
Wed, 5 Feb 2025 18:58:36 +0000 (18:58 +0000)
Type: test

Change-Id: Id5573d4e1a9216297046db33be887ebfa343fa28
Signed-off-by: Matus Fabian <[email protected]>
extras/hs-test/proxy_test.go

index 192451f..7cb3316 100644 (file)
@@ -589,7 +589,7 @@ func vppConnectUdpStressLoad(s *VppUdpProxySuite) {
                                        if e != nil {
                                                if errors.Is(e, os.ErrDeadlineExceeded) {
                                                        timed += 1
-                                               } else if errors.Is(e, err.(*CapsuleParseError)) {
+                                               } else if errors.Is(e, &CapsuleParseError{}) {
                                                        invalidData.Add(1)
                                                } else {
                                                        re += 1