]> Sergey Matveev's repositories - btrtrc.git/commit
test: use `T.TempDir` to create temporary test directory (#718)
authorEng Zer Jun <engzerjun@gmail.com>
Wed, 2 Feb 2022 07:26:46 +0000 (15:26 +0800)
committerGitHub <noreply@github.com>
Wed, 2 Feb 2022 07:26:46 +0000 (18:26 +1100)
commit841a702e344c936dc0e4130c365c95a170f2ec84
treed5ea6e4601eb5ed133ee1c2f70692e1875d3d1b4
parentd6534ea7e82952b8c298b8cbc4fdd61cf7e95dca
test: use `T.TempDir` to create temporary test directory (#718)

The directory created by `T.TempDir` is automatically removed when the
test and all its subtests complete.

Reference: https://pkg.go.dev/testing#T.TempDir
Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
client_test.go
fs/torrentfs_test.go
issue97_test.go
metainfo/metainfo_test.go
storage/bolt-piece-completion_test.go
storage/file_test.go
storage/issue95_test.go
storage/issue96_test.go
test/transfer_test.go
util/dirwatch/dirwatch_test.go