proc/core: return true for calls to Recorded (#2979)

The recent refactoring that introduced ContinueOnceContext broke this old behavior.

Fixes #2978
This commit is contained in:
Alessandro Arzilli
2022-05-04 19:56:41 +02:00
committed by GitHub
parent c9d800edb9
commit 55e37e2fc8
2 changed files with 8 additions and 1 deletions

View File

@ -257,6 +257,11 @@ func TestCore(t *testing.T) {
}
p := withCoreFile(t, "panic", "")
recorded, _ := p.Recorded()
if !recorded {
t.Fatalf("expecting recorded to be true")
}
gs, _, err := proc.GoroutinesInfo(p, 0, 0)
if err != nil || len(gs) == 0 {
t.Fatalf("GoroutinesInfo() = %v, %v; wanted at least one goroutine", gs, err)