File tree Expand file tree Collapse file tree
main/com/mongodb/internal/connection/netty
test/functional/com/mongodb/internal/connection Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -251,7 +251,7 @@ public ByteBuf limit(final int newLimit) {
251251
252252 @ Override
253253 public ByteBuf asReadOnly () {
254- return new NettyByteBuf ( proxied . asReadOnly (). retain (), false ) ;
254+ return this ;
255255 }
256256
257257 @ Override
Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ import com.mongodb.connection.SocketSettings
2525import com.mongodb.internal.connection.netty.NettyStreamFactory
2626import org.bson.BsonDocument
2727import org.bson.BsonInt32
28+ import spock.lang.Ignore
2829import spock.lang.Specification
2930
3031import java.util.concurrent.CountDownLatch
@@ -52,9 +53,11 @@ class CommandHelperSpecification extends Specification {
5253 }
5354
5455 def cleanup () {
56+ InternalStreamConnection . setRecordEverything(false )
5557 connection?. close()
5658 }
5759
60+ @Ignore (" JAVA-5982" )
5861 def ' should execute command asynchronously' () {
5962 when :
6063 BsonDocument receivedDocument = null
You can’t perform that action at this time.
0 commit comments