From e270742d5bd2cfa6387d6772ba32d9a254d0ad6f Mon Sep 17 00:00:00 2001 From: fbarbu15 Date: Wed, 1 Nov 2023 14:31:36 +0200 Subject: [PATCH] setup report --- .github/workflows/test-on-win.yml | 43 ------------------------------- requirements.txt | 2 +- tests/relay/test_publish.py | 19 +++----------- 3 files changed, 4 insertions(+), 60 deletions(-) delete mode 100644 .github/workflows/test-on-win.yml diff --git a/.github/workflows/test-on-win.yml b/.github/workflows/test-on-win.yml deleted file mode 100644 index 6590b2f1e5..0000000000 --- a/.github/workflows/test-on-win.yml +++ /dev/null @@ -1,43 +0,0 @@ -name: Interop Tests - -on: - schedule: - - cron: '0 3 * * *' - pull_request: - branches: - - master - workflow_dispatch: - inputs: - node1: - required: false - type: string - default: "wakuorg/nwaku:deploy-wakuv2-test" - node2: - required: false - type: string - default: "wakuorg/go-waku:latest" - -env: - FORCE_COLOR: "1" - NODE_1: ${{ inputs.node1 || 'wakuorg/nwaku:deploy-wakuv2-test' }} - NODE_2: ${{ inputs.node2 || 'wakuorg/go-waku:latest' }} - -jobs: - - tests: - name: tests - runs-on: ubuntu-latest - timeout-minutes: 30 - steps: - - - uses: actions/checkout@v4 - - - uses: actions/setup-python@v4 - with: - python-version: '3.12' - cache: 'pip' - - - run: pip install -r requirements.txt - - - name: Run tests - run: pytest diff --git a/requirements.txt b/requirements.txt index 091f0201e6..b11fd8deeb 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,9 +1,9 @@ +allure-pytest black docker pre-commit pyright pytest -docker pytest-instafail pytest-xdist requests diff --git a/tests/relay/test_publish.py b/tests/relay/test_publish.py index a44965a8e5..47d7343d5f 100644 --- a/tests/relay/test_publish.py +++ b/tests/relay/test_publish.py @@ -34,19 +34,6 @@ class TestRelayPublish(StepsRelay): failed_content_topics.append(content_topic) assert not failed_content_topics, f"ContentTopics failed: {failed_content_topics}" - # while True: - # message = MessageRpcQuery( - # payload="TTE=", - # contentTopic="/test/1/waku-filter", - # timestamp=int(time() * 1e9) - # ) - # node1.send_message(message) - # sleep(1) - # # print(node1.get_messages()) - # print(node2.get_messages()) - - # node1.stop() - # node2.stop() - - # info = node1.info() - # enr_uri = node1.info()["result"] + def test_fail_for_report_puposes(self): + message = MessageRpcQuery(payload="", contentTopic="") + self.check_published_message_reaches_peer(message)