Skip to content

Commit

Permalink
fail test if we leave a mockfs.DumpDB behind
Browse files Browse the repository at this point in the history
  • Loading branch information
sentriz committed Sep 7, 2023
1 parent 77fa858 commit e7e949a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mockfs/mockfs.go
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,8 @@ func (m *MockFS) DumpDB(suffix ...string) {
if err != nil {
m.t.Fatalf("backing up: %v", err)
}

m.t.Error("DumpDB left behind")
}

type tagReaderResult struct {
Expand Down

0 comments on commit e7e949a

Please sign in to comment.