From dec5e1a4a77996b7b6347c4b0b8499e61a022818 Mon Sep 17 00:00:00 2001 From: fbarbu15 Date: Wed, 8 Nov 2023 13:38:28 +0200 Subject: [PATCH] minor adjustments --- .github/workflows/test.yml | 4 ++-- src/node/api_clients/base_client.py | 2 +- src/node/waku_node.py | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index d6a9c08e..41259953 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -11,7 +11,7 @@ on: node1: required: false type: string - default: "wakuorg/nwaku:deploy-wakuv2-test" + default: "wakuorg/nwaku:latest" node2: required: false type: string @@ -27,7 +27,7 @@ on: env: FORCE_COLOR: "1" - NODE_1: ${{ inputs.node1 || 'wakuorg/nwaku:deploy-wakuv2-test' }} + NODE_1: ${{ inputs.node1 || 'wakuorg/nwaku:latest' }} NODE_2: ${{ inputs.node2 || 'wakuorg/go-waku:latest' }} PROTOCOL: ${{ inputs.protocol || 'REST' }} diff --git a/src/node/api_clients/base_client.py b/src/node/api_clients/base_client.py index 6be538f8..d89ca9ed 100644 --- a/src/node/api_clients/base_client.py +++ b/src/node/api_clients/base_client.py @@ -11,7 +11,7 @@ class BaseClient(ABC): # useful when running tests in parallel, where occasional network-related errors such as # connection drops, timeouts, or temporary unavailability of a service can occur. Retrying # ensures that such intermittent issues don't cause the tests to fail outright. - @retry(stop=stop_after_delay(2), wait=wait_fixed(0.1), reraise=True) + @retry(stop=stop_after_delay(1), wait=wait_fixed(0.1), reraise=True) def make_request(self, method, url, headers=None, data=None): logger.debug("%s call: %s with payload: %s", method.upper(), url, data) response = requests.request(method.upper(), url, headers=headers, data=data) diff --git a/src/node/waku_node.py b/src/node/waku_node.py index 8477c894..a0946e71 100644 --- a/src/node/waku_node.py +++ b/src/node/waku_node.py @@ -56,7 +56,7 @@ class WakuNode: if "go-waku" in self._docker_manager.image: go_waku_args = { - "min-relay-peers-to-publish": "0", + "min-relay-peers-to-publish": "1", "legacy-filter": "false", "log-level": "DEBUG", }