From f7797fcc9d3803e8269bd08c8ef9dc7703fd7c8d Mon Sep 17 00:00:00 2001
From: librelois <elois@ifee.fr>
Date: Wed, 11 Oct 2017 21:16:04 +0200
Subject: [PATCH] attempt to repair test ws2p_server_limitations

---
 test/integration/ws2p_server_limitations.ts | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/test/integration/ws2p_server_limitations.ts b/test/integration/ws2p_server_limitations.ts
index 0aa1bbbf4..8130d1862 100644
--- a/test/integration/ws2p_server_limitations.ts
+++ b/test/integration/ws2p_server_limitations.ts
@@ -166,7 +166,8 @@ describe("WS2P server limitations", function() {
 
   it('should connect to s3 because of configuration favorism', async () => {
     cluster3.maxLevel2Peers = 1
-    if (s3.conf.ws2p !== undefined) s3.conf.ws2p.publicAccess = true
+    if (s1._server.conf.ws2p) s1._server.conf.ws2p.privateAccess = true
+    if (s3._server.conf.ws2p) s3._server.conf.ws2p.publicAccess = true
     await s3.writeBlock(b3)
     await s3._server.PeeringService.generateSelfPeer(s3._server.conf)
     await s3._server.PeeringService.generateSelfPeer(s3._server.conf)
-- 
GitLab