We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3654a49 commit 818d4d0Copy full SHA for 818d4d0
testutil/logger.go
@@ -5,6 +5,7 @@ import (
5
"strings"
6
"testing"
7
8
+ "github.com/hashicorp/yamux"
9
"golang.org/x/xerrors"
10
11
"cdr.dev/slog"
@@ -24,6 +25,11 @@ func IgnoreLoggedError(entry slog.SinkEntry) bool {
24
25
if !ok {
26
return false
27
}
28
+ // Yamux sessions get shut down when we are shutting down tests, so ignoring
29
+ // them should reduce flakiness.
30
+ if xerrors.Is(err, yamux.ErrSessionShutdown) {
31
+ return true
32
+ }
33
// Canceled queries usually happen when we're shutting down tests, and so
34
// ignoring them should reduce flakiness. This also includes
35
// context.Canceled and context.DeadlineExceeded errors, even if they are
0 commit comments