fix(models): ensure unique GUIDs in InitTable function
Release / test (push) Successful in 2m47s
Release / release (push) Successful in 2m31s
Release / pkg-aur (push) Successful in 1m0s
Release / pkg-deb (push) Successful in 2m7s
Release / pkg-rpm (push) Successful in 2m8s

This commit is contained in:
Hein
2026-10-05 17:29:23 +02:00
parent d26d720e93
commit 20f8dd82b6
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -226,7 +226,8 @@ func TestInitConstructors(t *testing.T) {
}
// GUIDs are unique per call.
if InitTable("t", "s").GUID == InitTable("t", "s").GUID {
t1, t2 := InitTable("t", "s"), InitTable("t", "s")
if t1.GUID == t2.GUID {
t.Error("GUIDs must be unique")
}
}