Skip to content

Commit

Permalink
πŸ› In MockHttpClient, return an async task instead of a direct response
Browse files Browse the repository at this point in the history
  • Loading branch information
canterberry committed May 30, 2019
1 parent 26ec34e commit 60a9c17
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Blockmason.Link.Tests/MockHttpClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ public MockHttpClient() : base() {
}

public new Task<HttpResponseMessage> SendAsync(HttpRequestMessage request) {
return new HttpResponseMessage();
return new Task<HttpResponseMessage>(() => {
return new HttpResponseMessage();
});
}
}
}

0 comments on commit 60a9c17

Please sign in to comment.