| Index: pkg/shelf/test/log_middleware_test.dart
|
| diff --git a/pkg/shelf/test/log_middleware_test.dart b/pkg/shelf/test/log_middleware_test.dart
|
| index b9a83044e480da72dfbccea5100aedb9590753eb..e056504d2ad7d48639898d5e9a08a541237012ba 100644
|
| --- a/pkg/shelf/test/log_middleware_test.dart
|
| +++ b/pkg/shelf/test/log_middleware_test.dart
|
| @@ -58,4 +58,14 @@ void main() {
|
|
|
| expect(makeSimpleRequest(handler), throwsA('testing logging throw'));
|
| });
|
| +
|
| + test("doesn't log a HijackException", () {
|
| + var handler = const Pipeline()
|
| + .addMiddleware(logRequests(logger: logger))
|
| + .addHandler((request) => throw const HijackException());
|
| +
|
| + expect(makeSimpleRequest(handler).whenComplete(() {
|
| + expect(gotLog, isFalse);
|
| + }), throwsA(new isInstanceOf<HijackException>()));
|
| + });
|
| }
|
|
|