From 0b60dffa6b759b643d2768efb160585f264a2287 Mon Sep 17 00:00:00 2001 From: Jason Wijegooneratne Date: Mon, 30 Oct 2017 19:30:51 +0700 Subject: [PATCH] fix up floating promise --- src/__benchmarks__/dereference-petstore-swagger.benchmark.ts | 4 +++- src/__benchmarks__/dereference-temando-swagger.benchmark.ts | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/__benchmarks__/dereference-petstore-swagger.benchmark.ts b/src/__benchmarks__/dereference-petstore-swagger.benchmark.ts index 3b11534..b211521 100755 --- a/src/__benchmarks__/dereference-petstore-swagger.benchmark.ts +++ b/src/__benchmarks__/dereference-petstore-swagger.benchmark.ts @@ -37,7 +37,9 @@ const tests = [ } defer.resolve(); }, - ); + ).catch((reason) => { + defer.reject(reason); + }); }, }, ]; diff --git a/src/__benchmarks__/dereference-temando-swagger.benchmark.ts b/src/__benchmarks__/dereference-temando-swagger.benchmark.ts index 915ff5d..87ce7bc 100755 --- a/src/__benchmarks__/dereference-temando-swagger.benchmark.ts +++ b/src/__benchmarks__/dereference-temando-swagger.benchmark.ts @@ -36,7 +36,9 @@ const tests = [ } defer.resolve(); }, - ); + ).catch((reason) => { + defer.reject(reason); + }); }, }, ];