diff options
Diffstat (limited to 'tpl/os/os_test.go')
-rw-r--r-- | tpl/os/os_test.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tpl/os/os_test.go b/tpl/os/os_test.go index 98befa061..399adb374 100644 --- a/tpl/os/os_test.go +++ b/tpl/os/os_test.go @@ -38,15 +38,15 @@ func TestReadFile(t *testing.T) { }{ {filepath.FromSlash("/f/f1.txt"), "f1-content"}, {filepath.FromSlash("f/f1.txt"), "f1-content"}, - {filepath.FromSlash("../f2.txt"), false}, + {filepath.FromSlash("../f2.txt"), ""}, {"", false}, - {"b", false}, + {"b", ""}, } { result, err := ns.ReadFile(test.filename) if bb, ok := test.expect.(bool); ok && !bb { - b.Assert(err, qt.Not(qt.IsNil)) + b.Assert(err, qt.Not(qt.IsNil), qt.Commentf("filename: %q", test.filename)) continue } |