mirror of
https://github.com/fluencelabs/examples
synced 2025-04-09 03:16:04 +00:00
FluenceJS: fix test in nodejs example
This commit is contained in:
parent
782873f213
commit
e082a5442c
@ -3,11 +3,14 @@ import { demoCalculation } from '../_aqua/demo-calculation';
|
|||||||
|
|
||||||
describe('smoke test', () => {
|
describe('smoke test', () => {
|
||||||
it('should work', async () => {
|
it('should work', async () => {
|
||||||
|
try {
|
||||||
await runServer();
|
await runServer();
|
||||||
|
|
||||||
const res = await demoCalculation();
|
const res = await demoCalculation();
|
||||||
await justStop();
|
|
||||||
|
|
||||||
expect(res).toBe(7);
|
expect(res).toBe(7);
|
||||||
|
} finally {
|
||||||
|
await justStop();
|
||||||
|
}
|
||||||
}, 15000);
|
}, 15000);
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user