Skip to content

Commit

Permalink
fix(mock): fix q resolver in integration mocks
Browse files Browse the repository at this point in the history
  • Loading branch information
mefellows committed May 30, 2019
1 parent 02f16cc commit 6de02db
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/integration/broker-mock.ts
Original file line number Diff line number Diff line change
Expand Up @@ -460,6 +460,6 @@ export default (port: number): q.Promise<http.Server> => {
}));

const deferred = q.defer<http.Server>();
let s = server.listen(port, deferred.makeNodeResolver());
let s = server.listen(port, () => deferred.resolve());
return deferred.promise.then(() => s);
};
2 changes: 1 addition & 1 deletion test/integration/provider-mock.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,6 @@ export default (port: number): q.Promise<http.Server> => {
server.get("/noauth/pacts/provider/they/consumer/anotherclient/latest", returnJsonFile("./data/get-noauth-provider_they-consumer_anotherclient-latest.json"));

const deferred = q.defer<http.Server>();
let s = server.listen(port, deferred.makeNodeResolver());
let s = server.listen(port, () => deferred.resolve());
return deferred.promise.then(() => s);
};

0 comments on commit 6de02db

Please sign in to comment.