mirror of
https://github.com/golang/go
synced 2024-11-18 09:14:43 -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:
parent
9aed16e96d
commit
ae14472af9
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user