relax leveldb stack-trace regexp to match binaries compiled on all systems

This commit is contained in:
Jared Wasinger 2025-01-21 20:43:38 +08:00
parent 9c2eda3de2
commit 7c39107280
1 changed files with 1 additions and 1 deletions

View File

@ -428,7 +428,7 @@ func TestCheckSimBackendGoroutineLeak(t *testing.T) {
if len(l) > 0 { if len(l) > 0 {
// ignore this "leak" from leveldb: After closing the db, LevelDB takes about a second to close a go-routine // ignore this "leak" from leveldb: After closing the db, LevelDB takes about a second to close a go-routine
// that it instantiates. // that it instantiates.
re, err := regexp.Compile("github\\.com/syndtr/goleveldb/leveldb\\.\n.*/leveldb/db_state\\.go:110 \\+0xe4\ncreated by github\\.com/syndtr/goleveldb/leveldb\\.openDB in goroutine xxx\n.*/leveldb/db\\.go:149 \\+0x3d0") re, err := regexp.Compile("github\\.com/syndtr/goleveldb/leveldb\\.\n.*/leveldb/db_state\\.go:110 \\+.*\ncreated by github\\.com/syndtr/goleveldb/leveldb\\.openDB in goroutine xxx\n.*/leveldb/db\\.go:149 \\+.*")
if err != nil { if err != nil {
panic(err) panic(err)
} }