Skip to content

Commit

Permalink
Stop server after queries
Browse files Browse the repository at this point in the history
  • Loading branch information
zbud-msft committed Dec 19, 2024
1 parent a3a12e6 commit dd006d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gnmi_server/server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,7 @@ func createKeepAliveServer(t *testing.T, port int64) *Server {
func TestPFCWDErrors(t *testing.T) {
s := createServer(t, 8081)
go runServer(t, s)
defer s.ForceStop()

mock := gomonkey.ApplyFunc(sdc.GetPfcwdMap, func() (map[string]map[string]string, error) {
return nil, fmt.Errorf("Mock error")
Expand Down Expand Up @@ -334,7 +335,6 @@ func TestPFCWDErrors(t *testing.T) {
c.Close()
})
}
s.s.Stop()
}


Expand Down

0 comments on commit dd006d6

Please sign in to comment.