Add TestMultiProcessIDGeneration to reproduce the bug where multiple bd create processes fail with UNIQUE constraint errors when run simultaneously. Each goroutine opens a separate database connection to simulate independent processes. Test currently fails with 17/20 processes getting UNIQUE constraint errors, confirming the race condition in the in-memory ID counter. |
||
|---|---|---|
| .. | ||
| collision.go | ||
| collision_test.go | ||
| dependencies.go | ||
| dependencies_test.go | ||
| dirty.go | ||
| events.go | ||
| labels.go | ||
| ready.go | ||
| ready_test.go | ||
| schema.go | ||
| sqlite.go | ||
| sqlite_test.go | ||