fix(metadata): wait for the aggregation worker before closing the store

This commit is contained in:
2026-11-23 14:26:35 +00:00
parent a84f080b79
commit fe2d9f8b3a
4 changed files with 87 additions and 3 deletions
+13
View File
@@ -0,0 +1,13 @@
package gormstore
import "testing"
func TestCloseIsIdempotent(t *testing.T) {
store := openFileStore(t, true)
if err := store.Close(); err != nil {
t.Fatalf("first Close: %v", err)
}
if err := store.Close(); err != nil {
t.Fatalf("second Close: %v", err)
}
}