improve tests

This commit is contained in:
DieMyst
2021-06-12 12:03:46 +03:00
parent 7cc080df57
commit d5bf738f6c
24 changed files with 86 additions and 52 deletions

View File

@ -3,7 +3,7 @@
* This file is auto-generated. Do not edit manually: changes may be erased.
* Generated by Aqua compiler: https://github.com/fluencelabs/aqua/.
* If you find any bugs, please write an issue on GitHub: https://github.com/fluencelabs/aqua/issues
* Aqua version: 0.1.6-143
* Aqua version: 0.1.6-SNAPSHOT
*
*/
import { FluenceClient, PeerIdB58 } from '@fluencelabs/fluence';
@ -12,11 +12,12 @@ import { RequestFlow } from '@fluencelabs/fluence/dist/internal/RequestFlow';
export async function topologyTest(client: FluenceClient, me: string, myRelay: string, friend: string, friendRelay: string): Promise<string> {
export async function topologyTest(client: FluenceClient, me: string, myRelay: string, friend: string, friendRelay: string, ttlMsGeneratedArgument?: number): Promise<string> {
let request: RequestFlow;
const promise = new Promise<string>((resolve, reject) => {
request = new RequestFlowBuilder()
.disableInjections()
.withTTL(ttlMsGeneratedArgument || 5000)
.withRawScript(
`
(xor