Skip to content

Commit 257dc34

Browse files
committed
Report value of GOROOT when test fails.
1 parent ac4374e commit 257dc34

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stack_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ func trimBelow() stack.CallStack {
109109
func TestTrimRuntime(t *testing.T) {
110110
trace := stack.Trace().TrimRuntime()
111111
if got, want := len(trace), 1; got != want {
112-
t.Errorf("got len(trace) == %v, want %v, trace: %#v", got, want, trace)
112+
t.Errorf("got len(trace) == %v, want %v, goroot: %q, trace: %#v", got, want, runtime.GOROOT(), trace)
113113
}
114114
}
115115

0 commit comments

Comments
 (0)