fix(models): ensure unique GUIDs in InitTable function
This commit is contained in:
@@ -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")
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user