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 cbbbb44 commit fc400d6Copy full SHA for fc400d6
testutil/logger.go
@@ -2,6 +2,7 @@ package testutil
2
3
import (
4
"context"
5
+ "github.com/hashicorp/yamux"
6
"strings"
7
"testing"
8
@@ -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