diff --git a/test/integration/tools/TestUser.ts b/test/integration/tools/TestUser.ts index f58fd8d54eac3200351d308cef97ddc3a57e9be9..8c6cf1303b0a0c5926bda5556edba3e80d903c3e 100644 --- a/test/integration/tools/TestUser.ts +++ b/test/integration/tools/TestUser.ts @@ -183,7 +183,7 @@ export class TestUser { }; }; - public async sendMoney(amount:number, recipient:string, comment?:string) { + public async sendMoney(amount:number, recipient:TestUser, comment?:string) { const raw = await this.prepareITX(amount, recipient, comment) await this.sendTX(raw) } diff --git a/test/integration/ws2p_cluster.ts b/test/integration/ws2p_cluster.ts index 08c976f75661a43b40cfe6a6c8a0e5551a3e2e5a..29b65119021c14ef5a94469a385eb59d684de901 100644 --- a/test/integration/ws2p_cluster.ts +++ b/test/integration/ws2p_cluster.ts @@ -8,6 +8,7 @@ import { } from "./tools/toolbox" import {WS2PCluster} from "../../app/modules/ws2p/lib/WS2PCluster" import {WS2PConstants} from "../../app/modules/ws2p/lib/constants" +import { TestUser } from './tools/TestUser'; const assert = require('assert') @@ -18,7 +19,7 @@ describe("WS2P cluster", function() { const now = 1500000000 let s1:TestingServer, s2:TestingServer, s3:TestingServer - let cat:any, tac:any, toc:any + let cat:TestUser, tac:TestUser, toc:TestUser const catKeyring = { pub: 'HgTTJLAQ5sqfknMq7yLPZbehtuLSsKj9CxWN7k8QvYJd', sec: '51w4fEShBk1jCMauWu4mLpmDVfHksKmWcygpxriqCEZizbtERA6de4STKRkQBpxmMUwsKXRjSzuQ8ECwmqN1u2DP'} const tacKeyring = { pub: '2LvDg21dVXvetTD9GdkPLURavLYEqP3whauvPWX4c2qc', sec: '2HuRLWgKgED1bVio1tdpeXrf7zuUszv1yPHDsDj7kcMC4rVSN9RC58ogjtKNfTbH1eFz7rn38U1PywNs3m6Q7UxE'} const tocKeyring = { pub: 'DKpQPUL4ckzXYdnDRvCRKAm1gNvSdmAXnTrJZ7LvM5Qo', sec: '64EYRvdPpTfLGGmaX5nijLXRqWXaVz8r1Z1GtaahXwVSJGQRn7tqkxLb288zwSYzELMEG5ZhXSBYSxsTsz1m9y8F'} diff --git a/test/integration/ws2p_doc_sharing.ts b/test/integration/ws2p_doc_sharing.ts index 9bf6043352fb41d553e9048949080fcf48d1ebe2..be10fa17beb9f3b2b791593caf51d7b6df8e9d33 100644 --- a/test/integration/ws2p_doc_sharing.ts +++ b/test/integration/ws2p_doc_sharing.ts @@ -1,3 +1,4 @@ +import { TestUser } from './tools/TestUser'; import {simpleTestingConf, simpleTestingServer, simpleUser, simpleWS2PNetwork, TestingServer} from "./tools/toolbox" import {WS2PConstants} from "../../app/modules/ws2p/lib/constants" @@ -10,7 +11,7 @@ describe("WS2P doc sharing", function() { const now = 1500000000 let s1:TestingServer, s2:TestingServer, wss:any - let cat:any, tac:any, toc:any + let cat:TestUser, tac:TestUser, toc:TestUser const catKeyring = { pub: 'HgTTJLAQ5sqfknMq7yLPZbehtuLSsKj9CxWN7k8QvYJd', sec: '51w4fEShBk1jCMauWu4mLpmDVfHksKmWcygpxriqCEZizbtERA6de4STKRkQBpxmMUwsKXRjSzuQ8ECwmqN1u2DP'} const tacKeyring = { pub: '2LvDg21dVXvetTD9GdkPLURavLYEqP3whauvPWX4c2qc', sec: '2HuRLWgKgED1bVio1tdpeXrf7zuUszv1yPHDsDj7kcMC4rVSN9RC58ogjtKNfTbH1eFz7rn38U1PywNs3m6Q7UxE'} const tocKeyring = { pub: 'DKpQPUL4ckzXYdnDRvCRKAm1gNvSdmAXnTrJZ7LvM5Qo', sec: '64EYRvdPpTfLGGmaX5nijLXRqWXaVz8r1Z1GtaahXwVSJGQRn7tqkxLb288zwSYzELMEG5ZhXSBYSxsTsz1m9y8F'}