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() }