test timeout spec

This commit is contained in:
DieMyst
2022-04-12 15:25:23 +03:00
parent 2b576c75c1
commit 30d892d775
3 changed files with 35 additions and 2 deletions

View File

@ -1,5 +1,6 @@
import { Fluence } from '@fluencelabs/fluence';
import { parFunc, registerParService } from '../compiled/examples/par';
import {parFunc, registerParService, testTimeout} from '../compiled/examples/par';
import {config} from "../config";
export async function parCall() {
const relayPeerId = Fluence.getPeer().getStatus().relayPeerId;
@ -21,3 +22,9 @@ export async function parCall() {
return promise;
}
const relays = config.relays
export async function testTimeoutCall() {
return testTimeout([relays[3].peerId, relays[4].peerId])
}