fail test if we leave a mockfs.DumpDB behind
This commit is contained in:
@@ -340,6 +340,8 @@ func (m *MockFS) DumpDB(suffix ...string) {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
m.t.Fatalf("backing up: %v", err)
|
m.t.Fatalf("backing up: %v", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
m.t.Error("DumpDB left behind")
|
||||||
}
|
}
|
||||||
|
|
||||||
type tagReaderResult struct {
|
type tagReaderResult struct {
|
||||||
|
|||||||
Reference in New Issue
Block a user