Skip to content

Commit

Permalink
GODRIVER-2851 Fix failing "TestCMAPProse" test. (#1316)
Browse files Browse the repository at this point in the history
  • Loading branch information
qingyang-hu committed Aug 1, 2023
1 parent b687278 commit 989b3e1
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions x/mongo/driver/topology/cmap_prose_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,6 @@ func TestCMAPProse(t *testing.T) {
})
t.Run("checkOut", func(t *testing.T) {
t.Run("connection error publishes events", func(t *testing.T) {
// TODO(GODRIVER-2851): Fix and unskip this test case.
t.Skip("Test fails frequently, skipping. See GODRIVER-2851")

// If checkOut() creates a connection that encounters an error while connecting,
// the pool should publish connection created and closed events and checkOut should
// return the error.
Expand All @@ -131,8 +128,7 @@ func TestCMAPProse(t *testing.T) {
_, err := pool.checkOut(context.Background())
assert.NotNil(t, err, "expected checkOut() error, got nil")

assert.Equal(t, 1, len(created), "expected 1 opened events, got %d", len(created))
assert.Equal(t, 1, len(closed), "expected 1 closed events, got %d", len(closed))
assertConnectionCounts(t, pool, 1, 1)
})
t.Run("pool is empty", func(t *testing.T) {
// If a checkOut() has to create a new connection and that connection encounters an
Expand Down

0 comments on commit 989b3e1

Please sign in to comment.