mmm: small .EnsureLayer() change, fuzz tests for fixing borked databases

This commit is contained in:
fiatjaf
2025-10-14 19:33:50 +00:00
parent d85bb8aa1b
commit ac49036b77
6 changed files with 123 additions and 88 deletions

View File

@@ -68,11 +68,10 @@ func TestMMM(t *testing.T) {
err := mmmm.Init()
require.NoError(t, err)
il := mmm.IndexingLayer{}
err = mmmm.EnsureLayer("test", &il)
il, err := mmmm.EnsureLayer("test")
require.NoError(t, err)
test.run(t, &il)
test.run(t, il)
})
}
}