We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bb2ae4c commit b56f026Copy full SHA for b56f026
test/functional/transactions_tests.js
@@ -100,16 +100,14 @@ class TransactionsTestContext {
100
101
this.appliedFailPoints = [];
102
103
- // cleanup
104
- if (context.testClient) {
105
- cleanupPromises.push(
106
- context.testClient.close().then(() => {
+ return Promise.all(cleanupPromises).then(() => {
+ // cleanup
+ if (context.testClient) {
+ return context.testClient.close().then(() => {
107
delete context.testClient;
108
- })
109
- );
110
- }
111
-
112
- return Promise.all(cleanupPromises);
+ });
+ }
113
}
114
115
targetedFailPoint(options) {
0 commit comments