Repository navigation
Commit d1f1ad2
test(android): Make the DISCONNECTED test mock a disconnected network
`When network is active but not connected with permission, return
DISCONNECTED` mocked an active network reporting isConnected=false
alongside NetworkCapabilities describing a validated WiFi link. Those
describe opposite worlds.
It passes today only because the empty connection cache reads as fresh
for the first two minutes of every boot (JAVA-717), which forces the
legacy activeNetworkInfo path where the capability mocks are never
consulted. buildInfo reports API 24, so once that bug is fixed the
provider reads capabilities and the test would fail for a reason that
has nothing to do with what it is named after.
Fixing the mocks first keeps that failure from being buried in the
commit that fixes the cache.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>1 parent 440f5c6 commit d1f1ad2
1 file changed
Lines changed: 4 additions & 0 deletions
File tree
- sentry-android-core/src/test/java/io/sentry/android/core/internal/util
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
144 | 144 | | |
145 | 145 | | |
146 | 146 | | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
147 | 151 | | |
148 | 152 | | |
149 | 153 | | |
| |||
0 commit comments