Commit c1d117ad authored by Aaron Jacobs's avatar Aaron Jacobs

Fixed some test bugs.

parent 5f1b960b
......@@ -606,14 +606,14 @@ func (t *MemFSTest) UnlinkFile_StillOpen() {
buf := make([]byte, 1024)
n, err = f.ReadAt(buf, 0)
AssertEq(nil, err)
AssertEq(io.EOF, err)
AssertEq(4, n)
ExpectEq("taco", buf[:4])
ExpectEq("taco", string(buf[:4]))
// Writing should still work, too.
n, err = f.Write([]byte("burrito"))
AssertEq(nil, err)
AssertEq(4, n)
AssertEq(len("burrito"), n)
}
func (t *MemFSTest) Rmdir_NonEmpty() {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment