Skip to content

Commit

Permalink
fix legacy tests
Browse files Browse the repository at this point in the history
  • Loading branch information
estebanlm committed Jan 16, 2024
1 parent 52172ac commit 0a4a12c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
5 changes: 2 additions & 3 deletions mc/Mongo-DriverLegacy/MongoCursorLegacy.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,10 @@ MongoCursorLegacy >> execute [
collection: query collection ]
ifNil: [
self cursorQuery: query ].

reply := OpMsgReply fromStream: root stream.
reply := (ReplyOperation stream: root stream) read.
reply responseTo = requestId
ifFalse: [ ^ MongoWireProtocolError signal: 'Unexpected responseTo in response' ].

reply do: [:each |
numberReturned < limit ifTrue: [
query doBlock value: each.
Expand Down
8 changes: 8 additions & 0 deletions mc/Mongo-DriverLegacy/MongoLegacyDriver.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,14 @@ MongoLegacyDriver >> insert: aDocument collection: aMongoCollection [
write
]

{ #category : #factory }
MongoLegacyDriver >> newCommandQuery: aQuery [

^ self commandQueryClass
root: self root
query: aQuery
]

{ #category : #factory }
MongoLegacyDriver >> newQuery [

Expand Down

0 comments on commit 0a4a12c

Please sign in to comment.