mirror of
https://github.com/fluencelabs/examples
synced 2024-12-04 19:20:17 +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', () => {
|
||||
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);
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user