Merge pull request #1601 from balena-io/v1-healthcheck-stub-fix

Call restore for each healthcheck stub in v1 tests
This commit is contained in:
bulldozer-balena[bot] 2021-02-19 02:53:04 +00:00 committed by GitHub
commit 9abc4d76ed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -117,7 +117,7 @@ describe('SupervisorAPI [V1 Endpoints]', () => {
}
}
// Restore healthcheck stubs
healthCheckStubs.forEach((hc) => hc.restore);
healthCheckStubs.forEach((hc) => hc.restore());
// Remove any test data generated
await mockedAPI.cleanUp();
appMock.unmockAll();