mirror of https://github.com/status-im/js-waku.git
Merge #102
102: Increase test timeouts r=D4nte a=D4nte Co-authored-by: Franck Royer <franck@status.im>
This commit is contained in:
commit
fbfad9390c
|
@ -14,7 +14,7 @@ jobs:
|
|||
BUF_VERSION: '0.41.0'
|
||||
strategy:
|
||||
matrix:
|
||||
node: [14, 16]
|
||||
node: [14]
|
||||
os: [ubuntu-latest, macos-latest]
|
||||
runs-on: ${{ matrix.os }}
|
||||
steps:
|
||||
|
|
|
@ -1,8 +1,6 @@
|
|||
status = [
|
||||
"build_and_test (14, ubuntu-latest)",
|
||||
"build_and_test (16, ubuntu-latest)",
|
||||
"build_and_test (14, macos-latest)",
|
||||
"build_and_test (16, macos-latest)",
|
||||
"web_chat_build_and_test"
|
||||
]
|
||||
block_labels = ["work-in-progress"]
|
||||
|
|
|
@ -93,7 +93,7 @@ describe('Waku Relay', () => {
|
|||
let nimWaku: NimWaku;
|
||||
|
||||
beforeEach(async function () {
|
||||
this.timeout(12_000);
|
||||
this.timeout(30_000);
|
||||
waku = await Waku.create({
|
||||
staticNoiseKey: NOISE_KEY_1,
|
||||
listenAddresses: ['/ip4/0.0.0.0/tcp/0'],
|
||||
|
@ -167,7 +167,7 @@ describe('Waku Relay', () => {
|
|||
let nimWaku: NimWaku;
|
||||
|
||||
beforeEach(async function () {
|
||||
this.timeout(10_000);
|
||||
this.timeout(30_000);
|
||||
waku = await Waku.create({
|
||||
staticNoiseKey: NOISE_KEY_1,
|
||||
modules: { transport: [TCP] },
|
||||
|
@ -195,9 +195,12 @@ describe('Waku Relay', () => {
|
|||
});
|
||||
|
||||
it('nim subscribes to js', async function () {
|
||||
const subscribers = waku.libp2p.pubsub.getSubscribers(
|
||||
RelayDefaultTopic
|
||||
);
|
||||
let subscribers: string[] = [];
|
||||
|
||||
while (subscribers.length === 0) {
|
||||
await delay(200);
|
||||
subscribers = waku.libp2p.pubsub.getSubscribers(RelayDefaultTopic);
|
||||
}
|
||||
|
||||
const nimPeerId = await nimWaku.getPeerId();
|
||||
expect(subscribers).to.contain(nimPeerId.toB58String());
|
||||
|
|
Loading…
Reference in New Issue