request telemetry should throw runaway exception
This commit is contained in:
Родитель
a402268319
Коммит
6921020d6b
|
@ -43,6 +43,7 @@
|
|||
catch (Exception)
|
||||
{
|
||||
requestFailed = true;
|
||||
throw;
|
||||
}
|
||||
finally
|
||||
{
|
||||
|
|
|
@ -79,7 +79,8 @@
|
|||
httpContext => { throw new InvalidOperationException(); },
|
||||
CommonMocks.MockTelemetryClient(telemetry => this.sentTelemetry = telemetry));
|
||||
|
||||
await requestMiddleware.Invoke(context, new RequestTelemetry());
|
||||
|
||||
await Assert.ThrowsAsync<InvalidOperationException>(async () => { await requestMiddleware.Invoke(context, new RequestTelemetry()); } );
|
||||
|
||||
Assert.False(((RequestTelemetry)this.sentTelemetry).Success);
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче