We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 309d824 commit 72ce169Copy full SHA for 72ce169
1 file changed
fs/fs_test.go
@@ -18,6 +18,7 @@ import (
18
"bytes"
19
"io/ioutil"
20
"os"
21
+ "path"
22
"path/filepath"
23
"reflect"
24
"strings"
@@ -155,7 +156,7 @@ func TestOpen(t *testing.T) {
155
156
if got, want := stat.Mode(), wantFile.mode; got != want {
157
t.Errorf("Mode(%v) = %v; want %v", name, got, want)
158
}
- if got, want := stat.Name(), wantFile.name; got != want {
159
+ if got, want := stat.Name(), path.Base(wantFile.name); got != want {
160
t.Errorf("Name(%v) = %v; want %v", name, got, want)
161
162
if got, want := stat.Size(), wantFile.size; got != want {
0 commit comments