e2e log: Ginkgo 1.10.1 fixes stack skip

Now Ginkgo properly skips the initial stack entry.
This commit is contained in:
Patrick Ohly
2019-08-30 17:58:48 +02:00
parent f70c81c9f2
commit ecd7ae55bc
32 changed files with 56 additions and 58 deletions

View File

@@ -1,3 +1,8 @@
## 1.10.1
## Fixes
- stack backtrace: fix skipping (#600) [2a4c0bd]
## 1.10.0
## Fixes

View File

@@ -20,7 +20,7 @@ import (
"fmt"
)
const VERSION = "1.10.0"
const VERSION = "1.10.1"
type GinkgoConfigType struct {
RandomSeed int64

View File

@@ -11,7 +11,7 @@ import (
func New(skip int) types.CodeLocation {
_, file, line, _ := runtime.Caller(skip + 1)
stackTrace := PruneStack(string(debug.Stack()), skip)
stackTrace := PruneStack(string(debug.Stack()), skip+1)
return types.CodeLocation{FileName: file, LineNumber: line, FullStackTrace: stackTrace}
}