mirror of
https://github.com/logos-messaging/logos-messaging-js.git
synced 2026-06-06 03:49:29 +00:00
Use plain websocket in tests
Thanks to the libp2p upgrade, waku actually tries to listen to a secure websocket. Using plain websocket for now, testing secure websocket is tracked with #50.
This commit is contained in:
parent
01c1c253b4
commit
8cecfc205b
@ -17,7 +17,7 @@ describe('Waku Dial', function () {
|
|||||||
const [waku1, waku2] = await Promise.all([
|
const [waku1, waku2] = await Promise.all([
|
||||||
Waku.create({
|
Waku.create({
|
||||||
staticNoiseKey: NOISE_KEY_1,
|
staticNoiseKey: NOISE_KEY_1,
|
||||||
libp2p: { addresses: { listen: ['/ip4/0.0.0.0/tcp/0/wss'] } },
|
libp2p: { addresses: { listen: ['/ip4/0.0.0.0/tcp/0/ws'] } },
|
||||||
}),
|
}),
|
||||||
Waku.create({ staticNoiseKey: NOISE_KEY_2 }),
|
Waku.create({ staticNoiseKey: NOISE_KEY_2 }),
|
||||||
]);
|
]);
|
||||||
|
|||||||
@ -31,7 +31,7 @@ describe('Waku Relay', () => {
|
|||||||
Waku.create({ staticNoiseKey: NOISE_KEY_1 }),
|
Waku.create({ staticNoiseKey: NOISE_KEY_1 }),
|
||||||
Waku.create({
|
Waku.create({
|
||||||
staticNoiseKey: NOISE_KEY_2,
|
staticNoiseKey: NOISE_KEY_2,
|
||||||
libp2p: { addresses: { listen: ['/ip4/0.0.0.0/tcp/0/wss'] } },
|
libp2p: { addresses: { listen: ['/ip4/0.0.0.0/tcp/0/ws'] } },
|
||||||
}),
|
}),
|
||||||
]);
|
]);
|
||||||
|
|
||||||
@ -179,7 +179,7 @@ describe('Waku Relay', () => {
|
|||||||
Waku.create({
|
Waku.create({
|
||||||
pubsubTopic,
|
pubsubTopic,
|
||||||
staticNoiseKey: NOISE_KEY_2,
|
staticNoiseKey: NOISE_KEY_2,
|
||||||
libp2p: { addresses: { listen: ['/ip4/0.0.0.0/tcp/0/wss'] } },
|
libp2p: { addresses: { listen: ['/ip4/0.0.0.0/tcp/0/ws'] } },
|
||||||
}),
|
}),
|
||||||
Waku.create({
|
Waku.create({
|
||||||
staticNoiseKey: NOISE_KEY_2,
|
staticNoiseKey: NOISE_KEY_2,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user