diff --git a/test/integration/ws2p_server_limitations.ts b/test/integration/ws2p_server_limitations.ts index 0aa1bbbf4b9380144c132882e9253a1db2af296d..8130d186258fb6a94f927ad2e0baaf58bbf7f63d 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)