1
0
mirror of https://github.com/golang/go synced 2024-11-18 11:24:41 -07:00

os: clean up after test

Noted in CL 31358 after submit.

Change-Id: I76ddad9b9e27dd6a03c1c4f49153213747fe0a61
Reviewed-on: https://go-review.googlesource.com/31365
Run-TryBot: Russ Cox <rsc@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
This commit is contained in:
Russ Cox 2016-10-18 22:21:58 -04:00 committed by Brad Fitzpatrick
parent 9aed16e96d
commit ae14472af9

View File

@ -836,6 +836,8 @@ func TestRenameToDirFailed(t *testing.T) {
Remove(to) Remove(to)
Mkdir(from, 0777) Mkdir(from, 0777)
Mkdir(to, 0777) Mkdir(to, 0777)
defer Remove(from)
defer Remove(to)
err := Rename(from, to) err := Rename(from, to)
switch err := err.(type) { switch err := err.(type) {