@@ -123,7 +123,6 @@ class MongoClientSpecification extends Specification {
123123 .readConcern(ReadConcern . MAJORITY )
124124 .codecRegistry(getDefaultCodecRegistry())
125125 .build()
126- def codecRegistry = settings. getCodecRegistry()
127126 def readPreference = settings. getReadPreference()
128127 def readConcern = settings. getReadConcern()
129128 def client = new MongoClientImpl (Stub (Cluster ), null , settings, executor)
@@ -133,23 +132,26 @@ class MongoClientSpecification extends Specification {
133132 def changeStreamIterable = execute(watchMethod, session)
134133
135134 then :
136- expect changeStreamIterable, isTheSameAs(new ChangeStreamIterableImpl<> (session, namespace, codecRegistry,
135+ expect changeStreamIterable, isTheSameAs(new ChangeStreamIterableImpl<> (session, namespace,
136+ withUuidRepresentation(getDefaultCodecRegistry(), UNSPECIFIED ),
137137 readPreference, readConcern, executor, [], Document , ChangeStreamLevel . CLIENT , true ),
138138 [' codec' ])
139139
140140 when :
141141 changeStreamIterable = execute(watchMethod, session, [new Document (' $match' , 1 )])
142142
143143 then :
144- expect changeStreamIterable, isTheSameAs(new ChangeStreamIterableImpl<> (session, namespace, codecRegistry,
144+ expect changeStreamIterable, isTheSameAs(new ChangeStreamIterableImpl<> (session, namespace,
145+ withUuidRepresentation(getDefaultCodecRegistry(), UNSPECIFIED ),
145146 readPreference, readConcern, executor, [new Document (' $match' , 1 )], Document , ChangeStreamLevel . CLIENT ,
146147 true ), [' codec' ])
147148
148149 when :
149150 changeStreamIterable = execute(watchMethod, session, [new Document (' $match' , 1 )], BsonDocument )
150151
151152 then :
152- expect changeStreamIterable, isTheSameAs(new ChangeStreamIterableImpl<> (session, namespace, codecRegistry,
153+ expect changeStreamIterable, isTheSameAs(new ChangeStreamIterableImpl<> (session, namespace,
154+ withUuidRepresentation(getDefaultCodecRegistry(), UNSPECIFIED ),
153155 readPreference, readConcern, executor, [new Document (' $match' , 1 )], BsonDocument ,
154156 ChangeStreamLevel . CLIENT , true ), [' codec' ])
155157
0 commit comments