Commit aeb7405
committed
@W-21933885: [MSDK Android] App Attestation Implementation (Refactor to use true Espresso IdlingResource synchronization)
Replace manual polling with Espresso.onIdle() for proper IdlingResource handling:
- Remove manual while-loop polling and Thread.sleep(50)
- Use Espresso.onIdle() to let Espresso handle synchronization
- Configure per-wait timeouts using IdlingPolicies.setMasterPolicyTimeout()
- Save and restore previous timeout policy to avoid side effects
- Improve error messages for timeout exceptions
This is the idiomatic Espresso approach where Espresso automatically polls
the IdlingResource and waits until isIdleNow() returns true. This provides
better integration with Espresso's test infrastructure and more reliable
synchronization in Firebase Test Lab.)1 parent 9ddfa9e commit aeb7405
1 file changed
Lines changed: 23 additions & 10 deletions
File tree
- libs/test/SalesforceSDKTest/src/com/salesforce/androidsdk/ui
Lines changed: 23 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
| 62 | + | |
| 63 | + | |
62 | 64 | | |
63 | 65 | | |
64 | 66 | | |
| |||
120 | 122 | | |
121 | 123 | | |
122 | 124 | | |
| 125 | + | |
123 | 126 | | |
124 | 127 | | |
125 | 128 | | |
| |||
133 | 136 | | |
134 | 137 | | |
135 | 138 | | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
136 | 144 | | |
137 | 145 | | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | | - | |
146 | | - | |
147 | | - | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
148 | 149 | | |
149 | 150 | | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
150 | 158 | | |
151 | 159 | | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
152 | 165 | | |
153 | 166 | | |
154 | 167 | | |
| |||
0 commit comments