func cleanup(ctx *testutils.RktRunCtx, svc *gexpect.ExpectSubprocess, conn *grpc.ClientConn, imagePath string) { t := new(testing.T) // Print no messages. os.Remove(imagePath) conn.Close() stopAPIService(t, svc) ctx.Cleanup() }
func tearDown(s *grpc.Server, cc *grpc.ClientConn) { cc.Close() s.Stop() }