public async Task GetAllDoesNotRetryFailedRequest() { using (var server = await TestHttpUtils.StartServerAsync()) { server.Given(Request.Create().UsingGet()) .RespondWith(Response.Create().WithStatusCode(503)); using (var requestor = MakeRequestor(server)) { try { await requestor.GetAllDataAsync(); } catch (UnsuccessfulResponseException e) { Assert.Equal(503, e.StatusCode); } var reqs = new List <LogEntry>(server.LogEntries); Assert.Equal(1, reqs.Count); } } }