Commit f21a23c
test: add serial_test and cleanup to conversation_service tests
The conversation_service tests were failing in CI due to shared global
DeviceStorage state. When tests run in parallel, they interfere with
each other because they all share the same conversations/index.json.
This fix:
- Adds #[serial] attribute to all conversation_service tests to ensure
sequential execution
- Adds a cleanup_conversations helper function
- Cleans up existing conversations before tests that depend on counts
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>1 parent 49aaf77 commit f21a23c
1 file changed
Lines changed: 26 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
238 | 238 | | |
239 | 239 | | |
240 | 240 | | |
| 241 | + | |
241 | 242 | | |
242 | 243 | | |
243 | 244 | | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
244 | 256 | | |
| 257 | + | |
245 | 258 | | |
246 | 259 | | |
247 | 260 | | |
| |||
258 | 271 | | |
259 | 272 | | |
260 | 273 | | |
| 274 | + | |
261 | 275 | | |
262 | 276 | | |
263 | 277 | | |
264 | 278 | | |
265 | 279 | | |
266 | 280 | | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
267 | 284 | | |
268 | 285 | | |
269 | 286 | | |
| |||
297 | 314 | | |
298 | 315 | | |
299 | 316 | | |
| 317 | + | |
300 | 318 | | |
301 | 319 | | |
302 | 320 | | |
303 | 321 | | |
304 | 322 | | |
305 | 323 | | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
306 | 327 | | |
307 | 328 | | |
308 | 329 | | |
| |||
318 | 339 | | |
319 | 340 | | |
320 | 341 | | |
| 342 | + | |
321 | 343 | | |
322 | 344 | | |
323 | 345 | | |
| |||
346 | 368 | | |
347 | 369 | | |
348 | 370 | | |
| 371 | + | |
349 | 372 | | |
350 | 373 | | |
351 | 374 | | |
352 | 375 | | |
353 | 376 | | |
354 | 377 | | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
355 | 381 | | |
356 | 382 | | |
357 | 383 | | |
| |||
0 commit comments