From e7e949a077d6e9fca814df7c3f356c4f1b8950b7 Mon Sep 17 00:00:00 2001 From: sentriz Date: Wed, 23 Aug 2023 22:50:49 +0100 Subject: [PATCH] fail test if we leave a mockfs.DumpDB behind --- mockfs/mockfs.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mockfs/mockfs.go b/mockfs/mockfs.go index 8b7a3df..7f2caa4 100644 --- a/mockfs/mockfs.go +++ b/mockfs/mockfs.go @@ -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 {