ci / go (push) Waiting to run
ci / go-db (agent) (push) Waiting to run
ci / go-db (config) (push) Waiting to run
ci / go-db (db) (push) Waiting to run
ci / go-db (evidence) (push) Waiting to run
ci / go-db (llmrec) (push) Waiting to run
ci / go-db (server) (push) Waiting to run
web / web (push) Waiting to run
docs / links (push) Canceled after 0s
detections / detections (push) Canceled after 0s
16 lines
401 B
Go
16 lines
401 B
Go
package db
|
|
|
|
import "testing"
|
|
|
|
func TestCompanyScopeMutationLockDoesNotReuseInfrastructureLocks(t *testing.T) {
|
|
reserved := map[string]int64{
|
|
"schema migration": 7337741001,
|
|
"cross-package test suite": 7337741002,
|
|
}
|
|
for name, key := range reserved {
|
|
if companyScopeMutationLock == key {
|
|
t.Fatalf("company scope mutation lock reuses the %s advisory lock key %d", name, key)
|
|
}
|
|
}
|
|
}
|