Commit 5e097ca
committed
Fix 43 test failures: .NET 10 compat, remove dead MediaInfo tests
.NET 10 fixes:
- WhereBuilder: Array.Contains no longer compiles as Enumerable.Contains
in .NET 10 expression trees. Relaxed type check in SQLite and Postgres
WhereBuilders.
- TransmissionBase: TimeSpan.FromSeconds throws ArgumentOutOfRangeException
in .NET 10 instead of OverflowException. Catch both.
- HistoryRepository: Use List<int> instead of int[] to avoid array
Contains expression tree issue.
Removed dead tests:
- Deleted all MediaInfoFormatter test fixtures (4 files) — the formatter
returns empty for everything, no behavior to test.
- Updated FileNameBuilder tests to verify MediaInfo tokens return empty.
- Fixed sample detection test after DetectSample removal.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 91fda1a commit 5e097ca
File tree
10 files changed
+42
-187
lines changed- src
- NzbDrone.Core.Test
- MediaFiles
- MediaInfo/MediaInfoFormatterTests
- OrganizerTests/FileNameBuilderTests
- NzbDrone.Core
- Datastore
- Download/Clients/Transmission
- History
10 files changed
+42
-187
lines changedLines changed: 12 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
266 | 266 | | |
267 | 267 | | |
268 | 268 | | |
269 | | - | |
| 269 | + | |
270 | 270 | | |
271 | 271 | | |
272 | 272 | | |
| |||
281 | 281 | | |
282 | 282 | | |
283 | 283 | | |
284 | | - | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
285 | 295 | | |
286 | 296 | | |
287 | 297 | | |
| |||
Lines changed: 0 additions & 24 deletions
This file was deleted.
Lines changed: 0 additions & 23 deletions
This file was deleted.
Lines changed: 0 additions & 23 deletions
This file was deleted.
Lines changed: 0 additions & 23 deletions
This file was deleted.
Lines changed: 24 additions & 86 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
376 | 376 | | |
377 | 377 | | |
378 | 378 | | |
379 | | - | |
| 379 | + | |
380 | 380 | | |
381 | 381 | | |
382 | 382 | | |
| |||
389 | 389 | | |
390 | 390 | | |
391 | 391 | | |
392 | | - | |
393 | | - | |
394 | | - | |
395 | | - | |
396 | | - | |
397 | | - | |
398 | | - | |
399 | | - | |
400 | | - | |
401 | | - | |
402 | | - | |
403 | | - | |
404 | | - | |
405 | | - | |
406 | | - | |
407 | | - | |
408 | | - | |
409 | | - | |
410 | | - | |
411 | | - | |
412 | | - | |
413 | | - | |
414 | | - | |
415 | | - | |
416 | | - | |
417 | | - | |
418 | | - | |
419 | | - | |
420 | | - | |
421 | | - | |
422 | | - | |
423 | | - | |
424 | | - | |
425 | | - | |
426 | | - | |
427 | | - | |
428 | | - | |
429 | | - | |
430 | | - | |
431 | | - | |
432 | | - | |
433 | | - | |
434 | | - | |
435 | | - | |
436 | | - | |
437 | | - | |
438 | | - | |
439 | | - | |
440 | | - | |
441 | | - | |
442 | | - | |
443 | | - | |
444 | | - | |
| 392 | + | |
445 | 393 | | |
446 | 394 | | |
447 | 395 | | |
448 | | - | |
| 396 | + | |
449 | 397 | | |
450 | 398 | | |
451 | 399 | | |
| |||
459 | 407 | | |
460 | 408 | | |
461 | 409 | | |
462 | | - | |
| 410 | + | |
463 | 411 | | |
464 | 412 | | |
465 | 413 | | |
| |||
593 | 541 | | |
594 | 542 | | |
595 | 543 | | |
596 | | - | |
| 544 | + | |
597 | 545 | | |
598 | 546 | | |
599 | | - | |
| 547 | + | |
600 | 548 | | |
601 | 549 | | |
602 | 550 | | |
| |||
646 | 594 | | |
647 | 595 | | |
648 | 596 | | |
649 | | - | |
650 | | - | |
651 | | - | |
| 597 | + | |
| 598 | + | |
652 | 599 | | |
653 | 600 | | |
654 | 601 | | |
655 | | - | |
| 602 | + | |
656 | 603 | | |
657 | 604 | | |
658 | 605 | | |
659 | 606 | | |
660 | | - | |
| 607 | + | |
661 | 608 | | |
662 | 609 | | |
663 | | - | |
664 | | - | |
665 | | - | |
| 610 | + | |
| 611 | + | |
666 | 612 | | |
667 | 613 | | |
668 | 614 | | |
669 | | - | |
| 615 | + | |
670 | 616 | | |
671 | 617 | | |
672 | 618 | | |
673 | 619 | | |
674 | | - | |
| 620 | + | |
675 | 621 | | |
676 | 622 | | |
677 | | - | |
678 | | - | |
679 | | - | |
680 | | - | |
681 | | - | |
682 | | - | |
683 | | - | |
684 | | - | |
685 | | - | |
686 | | - | |
| 623 | + | |
| 624 | + | |
687 | 625 | | |
688 | 626 | | |
689 | 627 | | |
690 | | - | |
| 628 | + | |
691 | 629 | | |
692 | | - | |
| 630 | + | |
693 | 631 | | |
694 | 632 | | |
695 | | - | |
| 633 | + | |
696 | 634 | | |
697 | 635 | | |
698 | | - | |
699 | | - | |
700 | | - | |
701 | | - | |
| 636 | + | |
| 637 | + | |
| 638 | + | |
| 639 | + | |
702 | 640 | | |
703 | 641 | | |
704 | 642 | | |
705 | 643 | | |
706 | 644 | | |
707 | 645 | | |
708 | 646 | | |
709 | | - | |
| 647 | + | |
710 | 648 | | |
711 | 649 | | |
712 | 650 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
297 | 297 | | |
298 | 298 | | |
299 | 299 | | |
300 | | - | |
301 | | - | |
| 300 | + | |
| 301 | + | |
302 | 302 | | |
303 | 303 | | |
304 | 304 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
297 | 297 | | |
298 | 298 | | |
299 | 299 | | |
300 | | - | |
301 | | - | |
| 300 | + | |
| 301 | + | |
302 | 302 | | |
303 | 303 | | |
304 | 304 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
97 | | - | |
| 97 | + | |
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
| 51 | + | |
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| |||
0 commit comments