@@ -17,7 +17,6 @@ import (
17
17
"go.mongodb.org/mongo-driver/mongo/integration/mtest"
18
18
"go.mongodb.org/mongo-driver/mongo/options"
19
19
"go.mongodb.org/mongo-driver/mongo/readconcern"
20
- "go.mongodb.org/mongo-driver/mongo/writeconcern"
21
20
)
22
21
23
22
// set of operations that support read concerns taken from read/write concern spec.
@@ -193,21 +192,6 @@ func TestCausalConsistency_Supported(t *testing.T) {
193
192
assert .NotNil (mt , sentOptime , "expected operation time on command, got nil" )
194
193
assert .True (mt , currOptime .Equal (* sentOptime ), "expected operation time %v, got %v" , currOptime , sentOptime )
195
194
})
196
- unackWcOpts := options .Collection ().SetWriteConcern (writeconcern .New (writeconcern .W (0 )))
197
- mt .RunOpts ("unacknowledged write" , mtest .NewOptions ().CollectionOptions (unackWcOpts ), func (mt * mtest.T ) {
198
- // unacknowledged write should not update the operationTime of a session
199
-
200
- sess , err := mt .Client .StartSession ()
201
- assert .Nil (mt , err , "StartSession error: %v" , err )
202
- defer sess .EndSession (context .Background ())
203
-
204
- _ = mongo .WithSession (context .Background (), sess , func (sc mongo.SessionContext ) error {
205
- _ , _ = mt .Coll .InsertOne (sc , bson.D {{"x" , 1 }})
206
- return nil
207
- })
208
- optime := sess .OperationTime ()
209
- assert .Nil (mt , optime , "expected operation time nil, got %v" , optime )
210
- })
211
195
mt .Run ("clusterTime included" , func (mt * mtest.T ) {
212
196
// $clusterTime should be included in commands if the deployment supports cluster times
213
197
0 commit comments