Skip to content

Commit 2ba74e8

Browse files
committed
fix test
1 parent c3a7110 commit 2ba74e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

x/mongo/driver/topology/pool_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1522,7 +1522,7 @@ func TestBackgroundRead(t *testing.T) {
15221522
defer cancel()
15231523
_, err = conn.readWireMessage(ctx)
15241524
regex := regexp.MustCompile(
1525-
`^connection\(.*\[-\d+\]\) incomplete read of full message: context deadline exceeded: read tcp 127.0.0.1:.*->127.0.0.1:.*: i\/o timeout$`,
1525+
`^connection\(.*\[-\d+\]\) incomplete read of full message: context deadline exceeded: client timed out waiting for server response: read tcp 127.0.0.1:.*->127.0.0.1:.*: i\/o timeout$`,
15261526
)
15271527
assert.True(t, regex.MatchString(err.Error()), "error %q does not match pattern %q", err, regex)
15281528
err = p.checkIn(conn)

0 commit comments

Comments
 (0)