Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
81092: testutils: remove stack trace from SucceedsWithin r=stevendanna a=tbg

It has `t.Helper()` so it will already show the caller.

Release note: None


Co-authored-by: Tobias Grieger <[email protected]>
  • Loading branch information
craig[bot] and tbg committed May 23, 2022
2 parents 1a8ce4b + 6c55ba9 commit a34d9c1
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions pkg/testutils/soon.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ package testutils

import (
"context"
"runtime/debug"
"time"

"github.com/cockroachdb/cockroach/pkg/util"
Expand Down Expand Up @@ -56,8 +55,7 @@ func SucceedsSoonError(fn func() error) error {
func SucceedsWithin(t TB, fn func() error, duration time.Duration) {
t.Helper()
if err := SucceedsWithinError(fn, duration); err != nil {
t.Fatalf("condition failed to evaluate within %s: %s\n%s",
duration, err, string(debug.Stack()))
t.Fatalf("condition failed to evaluate within %s: %s", duration, err)
}
}

Expand Down

0 comments on commit a34d9c1

Please sign in to comment.