Skip to content

Use t.TempDir() in unit test #6192

@squakez

Description

@squakez

We are making use of temporary files in test which create a large amount of useless data. We should leverage the t.TempDir() to let the Golang testing framework to clean any temporary data when the test is complete.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/testgood first issueDoes not require full understanding of the codebase

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions