Skip to content

Commit

Permalink
fix test failure on JS/wasip
Browse files Browse the repository at this point in the history
Co-authored-by: Paulo Gomes <[email protected]>
  • Loading branch information
weberc2-tempus and pjbgf authored Nov 16, 2023
1 parent 7c7fd18 commit 91a136c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion memfs/memory_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,8 @@ func (s *MemorySuite) TestOrder(c *C) {
func (s *MemorySuite) TestNotFound(c *C) {
files, err := s.FS.ReadDir("asdf")
c.Assert(files, HasLen, 0)
c.Assert(err, ErrorMatches, "open /asdf: no such file or directory")
// JS / wasip have this error message captalised.
c.Assert(err, ErrorMatches, "open /asdf: (N|n)o such file or directory")
}

func (s *MemorySuite) TestTruncateAppend(c *C) {
Expand Down

0 comments on commit 91a136c

Please sign in to comment.