diff --git a/epictest/addcat_test.go b/epictest/addcat_test.go index 19bb0430a..2136ec4f9 100644 --- a/epictest/addcat_test.go +++ b/epictest/addcat_test.go @@ -89,7 +89,8 @@ func RandomBytes(n int64) []byte { } func AddCatBytes(data []byte, conf Config) error { - ctx := context.Background() + ctx, cancel := context.WithCancel(context.Background()) + defer cancel() mn := mocknet.New(ctx) // defer mn.Close() FIXME does mocknet require clean-up mn.SetLinkDefaults(mocknet.LinkOptions{