diff --git a/test/integration/ws2p_client_limitations.ts b/test/integration/ws2p_client_limitations.ts index 20a27bdba2df34355b983d9636ea6380bc6851ce..b9224e86d11dd35f3aec51d9cf633e1348f87946 100644 --- a/test/integration/ws2p_client_limitations.ts +++ b/test/integration/ws2p_client_limitations.ts @@ -8,11 +8,15 @@ import { waitForkWS2PDisconnection } from "./tools/toolbox" import {WS2PCluster} from "../../app/modules/ws2p/lib/WS2PCluster" +import {WS2PConstants} from "../../app/modules/ws2p/lib/constants" const assert = require('assert') describe("WS2P client limitations", function() { + WS2PConstants.CONNEXION_TIMEOUT = 100 + WS2PConstants.REQUEST_TIMEOUT= 100 + const now = 1500000000 let s1:TestingServer, s2:TestingServer, s3:TestingServer, s4:TestingServer let cluster1:WS2PCluster, cluster2:WS2PCluster, cluster3:WS2PCluster, cluster4:WS2PCluster diff --git a/test/integration/ws2p_cluster.ts b/test/integration/ws2p_cluster.ts index 1b53dade96dbb9bac77eac797781fbf33f557778..05da7330ab7974bb4aa64a288b5d57b7411a6d02 100644 --- a/test/integration/ws2p_cluster.ts +++ b/test/integration/ws2p_cluster.ts @@ -7,11 +7,15 @@ import { waitForkWS2PConnection } from "./tools/toolbox" import {WS2PCluster} from "../../app/modules/ws2p/lib/WS2PCluster" +import {WS2PConstants} from "../../app/modules/ws2p/lib/constants" const assert = require('assert') describe("WS2P cluster", function() { + WS2PConstants.CONNEXION_TIMEOUT = 100 + WS2PConstants.REQUEST_TIMEOUT= 100 + const now = 1500000000 let s1:TestingServer, s2:TestingServer, s3:TestingServer let cat:any, tac:any, toc:any diff --git a/test/integration/ws2p_connection.ts b/test/integration/ws2p_connection.ts index 6708ac7533193264df404fcd48a5ca6551a718e7..ea4de591a79a94ddcf7029cdbbe4440cd024c2cd 100644 --- a/test/integration/ws2p_connection.ts +++ b/test/integration/ws2p_connection.ts @@ -9,6 +9,7 @@ import {Key, verify} from "../../app/lib/common-libs/crypto/keyring" import {assertThrows, getNewTestingPort} from "./tools/toolbox" import {WS2PMessageHandler} from "../../app/modules/ws2p/lib/impl/WS2PMessageHandler" import {WS2PResponse} from "../../app/modules/ws2p/lib/impl/WS2PResponse" +import {WS2PConstants} from "../../app/modules/ws2p/lib/constants" const assert = require('assert'); const WebSocketServer = require('ws').Server const logger = require('../../app/lib/logger').NewLogger('ws2p') @@ -16,6 +17,9 @@ const gtest = "gtest" describe('WS2P', () => { + WS2PConstants.CONNEXION_TIMEOUT = 100 + WS2PConstants.REQUEST_TIMEOUT= 100 + describe("WS2P client connection", function() { describe("no auth", () => { diff --git a/test/integration/ws2p_doc_sharing.ts b/test/integration/ws2p_doc_sharing.ts index 68d43e13f8f3d67b2956d827f1bb5c56d14896bf..9bf6043352fb41d553e9048949080fcf48d1ebe2 100644 --- a/test/integration/ws2p_doc_sharing.ts +++ b/test/integration/ws2p_doc_sharing.ts @@ -1,9 +1,13 @@ import {simpleTestingConf, simpleTestingServer, simpleUser, simpleWS2PNetwork, TestingServer} from "./tools/toolbox" +import {WS2PConstants} from "../../app/modules/ws2p/lib/constants" const assert = require('assert') describe("WS2P doc sharing", function() { + WS2PConstants.CONNEXION_TIMEOUT = 100 + WS2PConstants.REQUEST_TIMEOUT= 100 + const now = 1500000000 let s1:TestingServer, s2:TestingServer, wss:any let cat:any, tac:any, toc:any diff --git a/test/integration/ws2p_docpool.ts b/test/integration/ws2p_docpool.ts index 90cc54ec508a43cbfd3615058fc5a4df62d901ad..fed1b20a9ec6da357de2f3a83c3f547035c23629 100644 --- a/test/integration/ws2p_docpool.ts +++ b/test/integration/ws2p_docpool.ts @@ -1,11 +1,15 @@ import {simpleTestingConf, simpleTestingServer, simpleUser, simpleWS2PNetwork, TestingServer} from "./tools/toolbox" import {WS2PCluster} from "../../app/modules/ws2p/lib/WS2PCluster" import {ProverDependency} from "../../app/modules/prover/index" +import {WS2PConstants} from "../../app/modules/ws2p/lib/constants" const assert = require('assert') describe("WS2P docpool pulling", function() { + WS2PConstants.CONNEXION_TIMEOUT = 100 + WS2PConstants.REQUEST_TIMEOUT= 100 + const now = 1500000000 let s1:TestingServer, s2:TestingServer, wss:any let cluster2:WS2PCluster diff --git a/test/integration/ws2p_exchange.ts b/test/integration/ws2p_exchange.ts index ad94beb03134e35c69e822bf895777adcef4bc78..731769fd044d126b48840d93fc9c28c15052dc5d 100644 --- a/test/integration/ws2p_exchange.ts +++ b/test/integration/ws2p_exchange.ts @@ -5,10 +5,14 @@ import {WS2PRequester} from "../../app/modules/ws2p/lib/WS2PRequester" import {BlockDTO} from "../../app/lib/dto/BlockDTO" import {WS2PMessageHandler} from "../../app/modules/ws2p/lib/impl/WS2PMessageHandler" import {WS2PResponse} from "../../app/modules/ws2p/lib/impl/WS2PResponse" +import {WS2PConstants} from "../../app/modules/ws2p/lib/constants" const assert = require('assert'); describe('WS2P exchange', () => { + WS2PConstants.CONNEXION_TIMEOUT = 100 + WS2PConstants.REQUEST_TIMEOUT= 100 + let wss:any let c1:WS2PConnection, s1:WS2PConnection diff --git a/test/integration/ws2p_heads.ts b/test/integration/ws2p_heads.ts index 1f3b894c21743908d9a5eae7e65574ec86e7f1fd..d116b90a950b5fcad6b9e3de2032f1f21316e553 100644 --- a/test/integration/ws2p_heads.ts +++ b/test/integration/ws2p_heads.ts @@ -1,11 +1,15 @@ import {getNewTestingPort, simpleTestingConf, simpleTestingServer, simpleUser, TestingServer} from "./tools/toolbox" import {WS2PCluster} from "../../app/modules/ws2p/lib/WS2PCluster" +import {WS2PConstants} from "../../app/modules/ws2p/lib/constants" const assert = require('assert') const should = require('should') describe("WS2P heads propagation", function() { + WS2PConstants.CONNEXION_TIMEOUT = 100 + WS2PConstants.REQUEST_TIMEOUT= 100 + const now = 1500000000 let s1:TestingServer, s2:TestingServer let cluster1:WS2PCluster, cluster2:WS2PCluster diff --git a/test/integration/ws2p_network.ts b/test/integration/ws2p_network.ts index 2f450fe805c1b329150481e0b2f4135ac039fd37..96cc0dc56ed362f0d631fd684c1c23c6c90d0ec0 100644 --- a/test/integration/ws2p_network.ts +++ b/test/integration/ws2p_network.ts @@ -1,14 +1,14 @@ -import { - getNewTestingPort, simpleTestingConf, simpleTestingServer, simpleUser, simpleWS2PNetwork, - TestingServer -} from "./tools/toolbox" +import {getNewTestingPort, simpleTestingConf, simpleTestingServer, simpleUser, TestingServer} from "./tools/toolbox" import {WS2PCluster} from "../../app/modules/ws2p/lib/WS2PCluster" -import {ProverDependency} from "../../app/modules/prover/index" +import {WS2PConstants} from "../../app/modules/ws2p/lib/constants" const assert = require('assert') describe("WS2P network", function() { + WS2PConstants.CONNEXION_TIMEOUT = 100 + WS2PConstants.REQUEST_TIMEOUT= 100 + const now = 1500000000 let s1:TestingServer, s2:TestingServer let cat:any, tac:any, toc:any diff --git a/test/integration/ws2p_pulling.ts b/test/integration/ws2p_pulling.ts index 39d8e8e3b8f175c1e9f27d25e7fd1d6a2821aa1a..31a050311a045b94db1ec9d5e1634fd9065f8f0d 100644 --- a/test/integration/ws2p_pulling.ts +++ b/test/integration/ws2p_pulling.ts @@ -1,10 +1,14 @@ import {simpleTestingConf, simpleTestingServer, simpleUser, simpleWS2PNetwork, TestingServer} from "./tools/toolbox" import {WS2PCluster} from "../../app/modules/ws2p/lib/WS2PCluster" +import {WS2PConstants} from "../../app/modules/ws2p/lib/constants" const assert = require('assert') describe("WS2P block pulling", function() { + WS2PConstants.CONNEXION_TIMEOUT = 100 + WS2PConstants.REQUEST_TIMEOUT= 100 + const now = 1500000000 let s1:TestingServer, s2:TestingServer, wss:any let cluster2:WS2PCluster diff --git a/test/integration/ws2p_server_limitations.ts b/test/integration/ws2p_server_limitations.ts index c903ec53501d791115171bb47e50bc97d4443b4c..cade3171746f93332e70c19f2248978fdf36b65e 100644 --- a/test/integration/ws2p_server_limitations.ts +++ b/test/integration/ws2p_server_limitations.ts @@ -8,11 +8,15 @@ import { waitForkWS2PDisconnection } from "./tools/toolbox" import {WS2PCluster} from "../../app/modules/ws2p/lib/WS2PCluster" +import {WS2PConstants} from "../../app/modules/ws2p/lib/constants" const assert = require('assert') describe("WS2P server limitations", function() { + WS2PConstants.CONNEXION_TIMEOUT = 100 + WS2PConstants.REQUEST_TIMEOUT= 100 + const now = 1500000000 let s1:TestingServer, s2:TestingServer, s3:TestingServer, s4:TestingServer let cluster1:WS2PCluster, cluster2:WS2PCluster, cluster3:WS2PCluster, cluster4:WS2PCluster