We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2643f74 commit 2cda46dCopy full SHA for 2cda46d
src/pkg/os/path_test.go
@@ -134,14 +134,13 @@ func TestRemoveAll(t *testing.T) {
134
if perr.Path != dpath {
135
t.Fatalf("RemoveAll %q failed at %q not %q", path, perr.Path, dpath)
136
}
137
- }
138
-
139
- if err = Chmod(dpath, 0777); err != nil {
140
- t.Fatalf("Chmod %q 0777: %s", dpath, err)
141
142
- for _, s := range []string{fpath, path + "/zzz"} {
143
- if _, err := Lstat(s); err == nil {
144
- t.Fatalf("Lstat %q succeeded after partial RemoveAll", s)
+ if err = Chmod(dpath, 0777); err != nil {
+ t.Fatalf("Chmod %q 0777: %s", dpath, err)
+ }
+ for _, s := range []string{fpath, path + "/zzz"} {
+ if _, err := Lstat(s); err == nil {
+ t.Fatalf("Lstat %q succeeded after partial RemoveAll", s)
145
146
147
if err = RemoveAll(path); err != nil {
0 commit comments