Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test(waku-filter): Subscribe tests batch (1/4) #2034

Merged
merged 8 commits into from
Oct 12, 2023

Conversation

AlejandroCabeza
Copy link
Contributor

@AlejandroCabeza AlejandroCabeza commented Sep 14, 2023

Description

Implement first batch of subscribe tests for waku filter.
I commented the tests in test_waku_filter.nim when I should've deleted them. The deletion has been added to the following PR.

Changes

  • Implement subscribe tests.
  • Rename waku filter utils module.
  • Comment duplicated tests (explained in the description section).
  • Make minor improvements to existing ping tests.

@AlejandroCabeza AlejandroCabeza changed the title tests(waku-filter): Subscribe tests batch test(waku-filter): Subscribe tests batch Sep 14, 2023
@AlejandroCabeza AlejandroCabeza self-assigned this Sep 14, 2023
@github-actions
Copy link

github-actions bot commented Sep 14, 2023

You can find the image built from this PR at

quay.io/wakuorg/nwaku-pr:2034

Built from d7b3827

@AlejandroCabeza AlejandroCabeza changed the title test(waku-filter): Subscribe tests batch test(waku-filter): Subscribe tests batch (1/3) Sep 19, 2023
Copy link
Collaborator

@Ivansete-status Ivansete-status left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! I've added a few comments/questions :)

tests/waku_filter_v2/test_waku_client.nim Outdated Show resolved Hide resolved
tests/waku_filter_v2/test_waku_client.nim Outdated Show resolved Hide resolved
tests/waku_filter_v2/test_waku_client.nim Outdated Show resolved Hide resolved
tests/waku_filter_v2/test_waku_filter.nim Outdated Show resolved Hide resolved
@AlejandroCabeza AlejandroCabeza changed the title test(waku-filter): Subscribe tests batch (1/3) test(waku-filter): Subscribe tests batch (1/4) Sep 20, 2023
@AlejandroCabeza AlejandroCabeza removed the request for review from NagyZoltanPeter September 25, 2023 13:02
@AlejandroCabeza AlejandroCabeza force-pushed the test-waku-filter-subscribe branch 2 times, most recently from dc47a6f to 76be3d1 Compare October 9, 2023 16:10
Copy link
Contributor

@NagyZoltanPeter NagyZoltanPeter left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall LGTM! Amazed about such a heavy use case testing.

await allFutures(wakuFilter.stop(), wakuFilterClient.stop(),
serverSwitch.stop(), clientSwitch.stop())
discard
# asyncTest "simple subscribe and unsubscribe request":
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see prev comment from Ivan and the answer but am I missed something or why not simple remove it fully... let git remember if something is needed later/parallel?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was a mistake I made, it's removed in one of the following PRs.

* Implement waku filter client subscribe tests.
* Remove legacy filter tests.
* Fix constant for max criteria per subscription limit.
@AlejandroCabeza AlejandroCabeza merged commit 1bba183 into master Oct 12, 2023
2 checks passed
@AlejandroCabeza AlejandroCabeza deleted the test-waku-filter-subscribe branch October 12, 2023 18:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants