Commit c97f92a
committed
test-store, tests: Add tests for VID collision prevention
Add a unit test that simulates the ipfs.map() pattern (multiple
EntityCache instances sharing one SeqGenerator) and verifies VIDs are
sequential. Extend the file_data_sources runner test so that two
offchain triggers in the same block each create an entity, exercising
the shared VID generator end-to-end.1 parent d121b39 commit c97f92a
File tree
3 files changed
+70
-7
lines changed- store/test-store/tests/graph
- tests
- runner-tests/file-data-sources/src
- tests
3 files changed
+70
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
463 | 463 | | |
464 | 464 | | |
465 | 465 | | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
466 | 497 | | |
467 | 498 | | |
468 | 499 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
126 | 126 | | |
127 | 127 | | |
128 | 128 | | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
129 | 136 | | |
130 | 137 | | |
131 | 138 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
673 | 673 | | |
674 | 674 | | |
675 | 675 | | |
676 | | - | |
| 676 | + | |
| 677 | + | |
| 678 | + | |
| 679 | + | |
677 | 680 | | |
678 | 681 | | |
679 | 682 | | |
680 | | - | |
| 683 | + | |
| 684 | + | |
| 685 | + | |
| 686 | + | |
| 687 | + | |
| 688 | + | |
| 689 | + | |
| 690 | + | |
| 691 | + | |
| 692 | + | |
| 693 | + | |
| 694 | + | |
681 | 695 | | |
682 | 696 | | |
683 | 697 | | |
| |||
687 | 701 | | |
688 | 702 | | |
689 | 703 | | |
690 | | - | |
| 704 | + | |
691 | 705 | | |
692 | 706 | | |
693 | 707 | | |
| |||
813 | 827 | | |
814 | 828 | | |
815 | 829 | | |
816 | | - | |
817 | | - | |
818 | 830 | | |
819 | | - | |
820 | | - | |
| 831 | + | |
| 832 | + | |
| 833 | + | |
| 834 | + | |
| 835 | + | |
| 836 | + | |
| 837 | + | |
| 838 | + | |
| 839 | + | |
| 840 | + | |
| 841 | + | |
| 842 | + | |
| 843 | + | |
| 844 | + | |
| 845 | + | |
821 | 846 | | |
822 | 847 | | |
823 | 848 | | |
| |||
0 commit comments