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

CBL-3032 Replication Network Interface option test #1379

Open
wants to merge 10 commits into
base: master
Choose a base branch
from

Conversation

Sandychuang8
Copy link
Contributor

@Sandychuang8 Sandychuang8 commented May 26, 2022

Note in Android device testing: If uses NI "lo" or it's IPv6 address "::1" will not connect to the remote end, I have to mask them to IPv4 address in order to get the connection to work.
Note in OSX testing: ethernet "en0" is found but there is no cable connected to it will result in Invalid Network Interface when trying to connect to the remote end.

NOTE: https://github.com/couchbase/couchbase-lite-net/blob/master/src/Couchbase.Lite.Shared/Sync/Reachability.cs#L88-L109 has to be used in Valid NI check as well!!!

@Sandychuang8 Sandychuang8 marked this pull request as ready for review May 27, 2022 23:15
src/Couchbase.Lite.Tests.Shared/URLEndpointListenerTest.cs Outdated Show resolved Hide resolved
InValidAddress
}

#if !__ANDROID__ && !__IOS__ //Cannot run this test in emulators
Copy link
Member

Choose a reason for hiding this comment

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

What about devices?

Copy link
Contributor Author

@Sandychuang8 Sandychuang8 May 28, 2022

Choose a reason for hiding this comment

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

I guess I can test this with actual devices. But they are not unit testable. I will report the result after device testing.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Created an iOS ticket CBL-3620

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Test update to get NI tests work with Android device: 92f15e2

Copy link
Member

Choose a reason for hiding this comment

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

There should be nothing stopping testing on actual devices, but what is the issue with emulators?

Copy link
Member

@borrrden borrrden left a comment

Choose a reason for hiding this comment

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

It's a good start

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

2 participants