---
title: "Discussion on \"Test in Go: risk of using Cleanup\" | Hashnode"
description: "Discussion on \"Test in Go: risk of using Cleanup\". Be careful on what's not guaranteed!"
url: "https://hashnode.com/posts/test-in-go-risk-of-using-cleanup/65d25b0d873e568c64e3eb73"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Test in Go: risk of using Cleanup](https://xuanyu.ca/test-in-go-risk-of-using-cleanup?utm_source=hashnode&utm_medium=feed)

Be careful on what's not guaranteed!

Feb 18, 2024 · 3 min read · xuanyu.ca  
Read the article

-   [#go](https://hashnode.com/tag/go)
-   [#testing](https://hashnode.com/tag/testing)
-   [#cleanup-function](https://hashnode.com/tag/cleanup-function)
-   [#unit-testing](https://hashnode.com/tag/unit-testing)

## Written by

[Xuanyu Wang](https://hashnode.com/@xuanyu)

@xuanyu · Toronto, Canada

  
[View profile](https://hashnode.com/@xuanyu)

Fullstack web developer

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
