Skip to content

Commit 4e55616

Browse files
committed
fix test not errored when doAndWrapResultPromises error early in node <= v14
1 parent f9645c8 commit 4e55616

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

test/conftest.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,10 @@ function doAndWrapResultPromises (func) {
104104
return;
105105
}
106106
resolve({ data, resp });
107-
});
107+
})
108+
.catch(err => {
109+
reject(err);
110+
});
108111
});
109112
return promises;
110113
}

0 commit comments

Comments
 (0)