|
@@ -23,12 +23,6 @@ ZnockClient >> fakeDelay: aDuration [
|
|
|
ifFalse: [ aDuration asDelay wait ]
|
|
|
]
|
|
|
|
|
|
-{ #category : #'private protocol' }
|
|
|
-ZnockClient >> fakeResponse: aZnResponse [
|
|
|
- response := aZnResponse.
|
|
|
- (response respondsTo: #signal) ifTrue: [ response signal ]
|
|
|
-]
|
|
|
-
|
|
|
{ #category : #'private protocol' }
|
|
|
ZnockClient >> getConnectionAndExecute [
|
|
|
| expectation |
|
|
@@ -36,7 +30,7 @@ ZnockClient >> getConnectionAndExecute [
|
|
|
expectation ifNil: [ ^ super executeRequestResponse ].
|
|
|
expectation customizeResponseFromRequest: request.
|
|
|
expectation delay ifNotNil: [ :delay | self fakeDelay: delay ].
|
|
|
- self fakeResponse: expectation response.
|
|
|
+ response := expectation response.
|
|
|
^ response contents
|
|
|
]
|
|
|
|