Closed alakendu closed 2 years ago
I think we are getting this exception due to ( within http://gitlab.it.keysight.com/athena/protocol-etoe-tests/blob/master/scripts/templates/gcp_bgpv4_function.go )
// in case of error also we must save capture
defer stopAndSaveCapture(t, client, config, capturePorts, "TestPacketCaptureDef")
defer client.StopProtocol()
defer client.Close()
As we know go multiple defer statement executes in LIFO order. So gosanppi is throwing exception when try to execute SetCaptureState after Close
Please change the code snippet to
defer client.Close()
defer client.StopProtocol()
defer stopAndSaveCapture(t, client, config, capturePorts, "TestPacketCaptureDef")
This is the exception. Attached log for more details