Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tests: fix promise left hanging after unit tests finish #306

Merged
merged 10 commits into from
Jul 4, 2023
Prev Previous commit
Next Next commit
chore: fix linter
pedroferreira1 committed Jul 4, 2023
commit f448b0366492fd2321c8aec14d795202c6151bc8
6 changes: 3 additions & 3 deletions __tests__/test-utils.js
Original file line number Diff line number Diff line change
@@ -37,7 +37,8 @@ const MULTISIG_DATA = {
}
};

let request, server;
let request; let
server;

const httpMock = new MockAdapter(axios);

@@ -225,13 +226,12 @@ class TestUtils {
}
});
});

}

static startServer() {
return new Promise((resolve, reject) => {
const app = createApp();
server = app.listen(8088, (err) => {
server = app.listen(8088, err => {
if (err) {
reject(err);
pedroferreira1 marked this conversation as resolved.
Show resolved Hide resolved
}