diff --git a/mongo/client_encryption_test.go b/mongo/client_encryption_test.go index 35acedb5b2..1c49b3f707 100644 --- a/mongo/client_encryption_test.go +++ b/mongo/client_encryption_test.go @@ -32,7 +32,6 @@ func TestClientEncryption_ErrClientDisconnected(t *testing.T) { t.Run("CreateEncryptedCollection", func(t *testing.T) { t.Parallel() _, _, err := ce.CreateEncryptedCollection(context.Background(), nil, "", options.CreateCollection(), "", nil) - assert.Equal(t, ErrClientDisconnected, err, "expected error %v, got %v", ErrClientDisconnected, err) assert.ErrorIs(t, err, ErrClientDisconnected) }) t.Run("AddKeyAltName", func(t *testing.T) {