1
0
Fork 0

Close files during touch

master
Philip O'Toole 11 months ago
parent c3be580a53
commit 0d521777df

@ -153,9 +153,13 @@ func Test_StoreCreateCancel(t *testing.T) {
func mustTouchFile(t *testing.T, path string) {
t.Helper()
if _, err := os.Create(path); err != nil {
fd, err := os.Create(path)
if err != nil {
t.Fatalf("Failed to create file: %v", err)
}
if err := fd.Close(); err != nil {
t.Fatalf("Failed to close file: %v", err)
}
}
func mustTouchDir(t *testing.T, path string) {

Loading…
Cancel
Save