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

refactor: peerManager test #683

Merged
merged 3 commits into from
Aug 30, 2023
Merged

refactor: peerManager test #683

merged 3 commits into from
Aug 30, 2023

Conversation

harsh-98
Copy link
Contributor

@harsh-98 harsh-98 commented Aug 25, 2023

Description

AddPeerToServiceSlot is exposed to prevent cyclic dependency bcz peerManager is used in test/utils for creating TestPeerDiscover and test/utils is used in test of peerManager in subfolder.

Changes

  • add mock peer discoverer to peermanager folder.

Tests

@status-im-auto
Copy link

status-im-auto commented Aug 25, 2023

Jenkins Builds

Click to see older builds (18)
Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ 5f763f0 #1 2023-08-25 07:16:31 ~1 min linux 📦deb
✔️ 5f763f0 #1 2023-08-25 07:17:46 ~2 min nix-flake 📄log
✔️ 5f763f0 #1 2023-08-25 07:18:06 ~2 min tests 📄log
✔️ 5f763f0 #1 2023-08-25 07:18:12 ~2 min tests 📄log
✔️ 5f763f0 #1 2023-08-25 07:19:07 ~3 min android 📦tgz
✔️ 5f763f0 #1 2023-08-25 07:19:18 ~4 min ios 📦tgz
✔️ 0c21975 #2 2023-08-25 12:11:39 ~30 sec linux 📦deb
✖️ 0c21975 #2 2023-08-25 12:13:35 ~2 min tests 📄log
✖️ 0c21975 #2 2023-08-25 12:14:13 ~3 min tests 📄log
✔️ 0c21975 #2 2023-08-25 12:14:22 ~3 min android 📦tgz
✔️ 0c21975 #2 2023-08-25 12:15:01 ~3 min nix-flake 📄log
✔️ 0c21975 #2 2023-08-25 12:34:22 ~23 min ios 📦tgz
✔️ 0c21975 #3 2023-08-28 06:48:39 ~33 sec linux 📦deb
✖️ 0c21975 #3 2023-08-28 06:49:15 ~1 min tests 📄log
✔️ 0c21975 #3 2023-08-28 06:49:59 ~1 min nix-flake 📄log
✖️ 0c21975 #3 2023-08-28 06:50:56 ~2 min tests 📄log
✔️ 0c21975 #3 2023-08-28 06:51:37 ~3 min android 📦tgz
✔️ 0c21975 #3 2023-08-28 06:52:16 ~4 min ios 📦tgz
Commit #️⃣ Finished (UTC) Duration Platform Result
✖️ 1ab2c0d #4 2023-08-28 06:55:37 ~1 min tests 📄log
✖️ 1ab2c0d #4 2023-08-28 06:55:42 ~1 min tests 📄log
✔️ 1ab2c0d #4 2023-08-28 06:55:45 ~1 min linux 📦deb
✔️ 1ab2c0d #4 2023-08-28 06:56:25 ~1 min nix-flake 📄log
✔️ 1ab2c0d #4 2023-08-28 06:57:42 ~3 min android 📦tgz
✔️ 1ab2c0d #4 2023-08-28 06:58:01 ~3 min ios 📦tgz
✔️ 340da1a #5 2023-08-30 12:12:52 ~1 min linux 📦deb
✔️ 340da1a #5 2023-08-30 12:13:32 ~1 min nix-flake 📄log
✔️ 340da1a #5 2023-08-30 12:14:44 ~3 min android 📦tgz
✔️ 340da1a #5 2023-08-30 12:14:44 ~3 min tests 📄log
✔️ 340da1a #5 2023-08-30 12:15:44 ~4 min ios 📦tgz
✔️ 340da1a #5 2023-08-30 12:15:59 ~4 min tests 📄log

Copy link
Collaborator

@chaitanyaprem chaitanyaprem left a comment

Choose a reason for hiding this comment

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

LGTM except for the name change. Please do the name change post which this can be merged.
Thanks for resolving this.

waku/v2/peermanager/mock_peer_manager.go Outdated Show resolved Hide resolved
Copy link
Member

@richard-ramos richard-ramos left a comment

Choose a reason for hiding this comment

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

LGTM

@chaitanyaprem
Copy link
Collaborator

@harsh-98 Looks like tests are failing, please fix them and then we can merge this PR.

Base automatically changed from peerConnector to master August 28, 2023 06:47
@harsh-98 harsh-98 merged commit 229fb7a into master Aug 30, 2023
2 checks passed
@harsh-98 harsh-98 deleted the peerManagertest branch August 30, 2023 14:33
@harsh-98
Copy link
Contributor Author

#634

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

4 participants