-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Migrate Connectivity Monitoring to NWPathMonitor on Apple Platforms #16112
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
base: main
Are you sure you want to change the base?
Changes from 31 commits
295ee89
6e95d71
6a82fbd
2d6a1cb
11a630d
20e84db
4309cfb
4ab254d
2f95e78
191630c
a5fab0d
25d5431
3bd3498
0ca806a
dea868d
d8b7386
52fb772
b9bfb5d
8d579ac
5e815cd
434d435
3495380
85cd6d1
f7b4d53
d37a9f3
5927991
2253f47
0862789
55dad88
5b44b78
811c9b6
419b433
4493f86
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -337,7 +337,8 @@ - (void)testWatchSurvivesNetworkDisconnect { | |
| addSnapshotListenerWithIncludeMetadataChanges:YES | ||
| listener:^(FIRQuerySnapshot *snapshot, NSError *error) { | ||
| XCTAssertNil(error); | ||
| if (!snapshot.empty && !snapshot.metadata.fromCache) { | ||
| if (!snapshot.empty && !snapshot.metadata.fromCache && | ||
| !snapshot.metadata.hasPendingWrites) { | ||
| [testExpectiation fulfill]; | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fix flaky testWatchSurvivesNetworkDisconnect under new connectivity timing. The test used This is a latent bug in the test, not a regression from the connectivity monitor refactor. The connectivity changes in this PR shifted the timing of network state delivery in a way that exposed it. Tighten the filter to also require !hasPendingWrites, which is the condition the test actually intends to wait for: the write has fully round-tripped to the server. |
||
| } | ||
| }]; | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: 80 chars wrapping and put new entries under new "Unreleased" header