FluenceJS: fix test in nodejs example

This commit is contained in:
Pavel Murygin 2022-04-14 00:31:33 +03:00
parent 782873f213
commit e082a5442c

View File

@ -3,11 +3,14 @@ import { demoCalculation } from '../_aqua/demo-calculation';
describe('smoke test', () => {
it('should work', async () => {
await runServer();
try {
await runServer();
const res = await demoCalculation();
await justStop();
const res = await demoCalculation();
expect(res).toBe(7);
expect(res).toBe(7);
} finally {
await justStop();
}
}, 15000);
});