From 7b34feefa412ffced1a59af9c6507ff3b784d3a5 Mon Sep 17 00:00:00 2001 From: Maxime Wojtczak Date: Thu, 26 Dec 2019 14:54:51 +0100 Subject: [PATCH] test(): Check error during tests. --- test/integration.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/integration.go b/test/integration.go index bb772c3..7d6c588 100644 --- a/test/integration.go +++ b/test/integration.go @@ -42,6 +42,9 @@ func LaunchTrapReceiver(port int32) (*snmpgo.TrapServer, chan *snmpgo.TrapReques Version: snmpgo.V2c, Community: "public", }) + if err != nil { + return nil, nil, err + } err = trapServer.AddSecurity(&snmpgo.SecurityEntry{ Version: snmpgo.V3, SecurityLevel: snmpgo.AuthPriv,