relax leveldb stack-trace regexp to match binaries compiled on all systems
This commit is contained in:
parent
9c2eda3de2
commit
7c39107280
|
@ -428,7 +428,7 @@ func TestCheckSimBackendGoroutineLeak(t *testing.T) {
|
|||
if len(l) > 0 {
|
||||
// ignore this "leak" from leveldb: After closing the db, LevelDB takes about a second to close a go-routine
|
||||
// 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 {
|
||||
panic(err)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue