Repository navigation
Commit 58cbb87
authored
Fix instrumented tests after the API v3 and weight-validation changes (#41)
f4c3a19 replaced OpenScaleMeasurementValue's key/typeId with the
namespaced identity, but SyncServiceInstrumentedTest still built its
measurements with the old constructor, so
:app:compileDebugAndroidTestKotlin failed. Build the weight value with
the builtin.weight identity instead.
Once the suite compiles, four tests fail on a device: since 8a216f6
submit() refuses inserts and updates without a usable weight, and these
tests started the service without any values. Send a value set with a
weight, and expect the garbage-values case to be refused rather than
dispatched.1 parent 03c32b5 commit 58cbb87
1 file changed
Lines changed: 12 additions & 5 deletions
File tree
- src/app/src/androidTest/java/com/health/openscale/sync/core/service
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
77 | | - | |
| 77 | + | |
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
83 | | - | |
| 83 | + | |
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
| |||
132 | 132 | | |
133 | 133 | | |
134 | 134 | | |
| 135 | + | |
135 | 136 | | |
136 | | - | |
| 137 | + | |
137 | 138 | | |
138 | 139 | | |
139 | 140 | | |
140 | 141 | | |
141 | | - | |
| 142 | + | |
142 | 143 | | |
143 | 144 | | |
144 | 145 | | |
| |||
167 | 168 | | |
168 | 169 | | |
169 | 170 | | |
170 | | - | |
| 171 | + | |
171 | 172 | | |
172 | 173 | | |
173 | 174 | | |
| |||
202 | 203 | | |
203 | 204 | | |
204 | 205 | | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
205 | 212 | | |
206 | 213 | | |
207 | 214 | | |
| |||
0 commit comments