chainlink-testing-framework icon indicating copy to clipboard operation
chainlink-testing-framework copied to clipboard

refactor: use t.TempDir() instead of os.MkdirTemp

Open tgolang opened this issue 10 months ago • 0 comments

TempDir() is a method introduced in Go 1.15 for testing.T. It automatically creates a temporary directory and cleans it up after the test is complete, eliminating the hassle of manually handling errors and cleanup. More detail about TempDir https://pkg.go.dev/testing#B.TempDir

tgolang avatar Mar 08 '25 08:03 tgolang