runtime: update vendor/modules.txt

go 1.14 requires it to match go.mod and exposes a backtrace with
slightly difference.

Fixes: #227
Signed-off-by: Peng Tao <bergwolf@hyper.sh>
This commit is contained in:
Peng Tao
2020-05-25 09:01:03 -07:00
parent 6bc69760c0
commit 4fdb4cffd5
2 changed files with 57 additions and 3 deletions

View File

@@ -126,8 +126,6 @@ func TestSignalBacktrace(t *testing.T) {
// determine name of *this* function
pc := make([]uintptr, 1)
goruntime.Callers(1, pc)
fn := goruntime.FuncForPC(pc[0])
name := fn.Name()
Backtrace()
@@ -136,5 +134,4 @@ func TestSignalBacktrace(t *testing.T) {
// very basic tests to check if a backtrace was produced
assert.True(strings.Contains(b, "contention:"))
assert.True(strings.Contains(b, `level=error`))
assert.True(strings.Contains(b, name))
}