102: Increase test timeouts r=D4nte a=D4nte



Co-authored-by: Franck Royer <franck@status.im>
This commit is contained in:
bors[bot] 2021-04-29 06:41:25 +00:00 committed by GitHub
commit fbfad9390c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 8 deletions

View File

@ -14,7 +14,7 @@ jobs:
BUF_VERSION: '0.41.0' BUF_VERSION: '0.41.0'
strategy: strategy:
matrix: matrix:
node: [14, 16] node: [14]
os: [ubuntu-latest, macos-latest] os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
steps: steps:

View File

@ -1,8 +1,6 @@
status = [ status = [
"build_and_test (14, ubuntu-latest)", "build_and_test (14, ubuntu-latest)",
"build_and_test (16, ubuntu-latest)",
"build_and_test (14, macos-latest)", "build_and_test (14, macos-latest)",
"build_and_test (16, macos-latest)",
"web_chat_build_and_test" "web_chat_build_and_test"
] ]
block_labels = ["work-in-progress"] block_labels = ["work-in-progress"]

View File

@ -93,7 +93,7 @@ describe('Waku Relay', () => {
let nimWaku: NimWaku; let nimWaku: NimWaku;
beforeEach(async function () { beforeEach(async function () {
this.timeout(12_000); this.timeout(30_000);
waku = await Waku.create({ waku = await Waku.create({
staticNoiseKey: NOISE_KEY_1, staticNoiseKey: NOISE_KEY_1,
listenAddresses: ['/ip4/0.0.0.0/tcp/0'], listenAddresses: ['/ip4/0.0.0.0/tcp/0'],
@ -167,7 +167,7 @@ describe('Waku Relay', () => {
let nimWaku: NimWaku; let nimWaku: NimWaku;
beforeEach(async function () { beforeEach(async function () {
this.timeout(10_000); this.timeout(30_000);
waku = await Waku.create({ waku = await Waku.create({
staticNoiseKey: NOISE_KEY_1, staticNoiseKey: NOISE_KEY_1,
modules: { transport: [TCP] }, modules: { transport: [TCP] },
@ -195,9 +195,12 @@ describe('Waku Relay', () => {
}); });
it('nim subscribes to js', async function () { it('nim subscribes to js', async function () {
const subscribers = waku.libp2p.pubsub.getSubscribers( let subscribers: string[] = [];
RelayDefaultTopic
); while (subscribers.length === 0) {
await delay(200);
subscribers = waku.libp2p.pubsub.getSubscribers(RelayDefaultTopic);
}
const nimPeerId = await nimWaku.getPeerId(); const nimPeerId = await nimWaku.getPeerId();
expect(subscribers).to.contain(nimPeerId.toB58String()); expect(subscribers).to.contain(nimPeerId.toB58String());