diff --git a/errors.go b/errors.go index 6692e39..51249db 100644 --- a/errors.go +++ b/errors.go @@ -24,7 +24,7 @@ assert.%s func fileInfo() (string, int) { // Skip frames: runtime.Callers, this function, assertion function, and test helper // This gets us to the actual test file that called the assertion - const skip = 4 + const skip = 3 _, file, line, ok := runtime.Caller(skip) if !ok { return "unknown_file", 0