Commit cd0df98
committed
fix(tests): avoid result4 panic and assert concurrent update errors
- dockertest: check len(result4) before using result4[0].Name so test
failure reporting does not panic when the query returns an unexpected
number of rows.
- dockertest: capture Update(...).Error in concurrent update goroutines,
send errors on errCh, and t.Fatalf on any error after goroutines finish
so failed writes fail the test.1 parent 751accb commit cd0df98
1 file changed
+13
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
363 | 363 | | |
364 | 364 | | |
365 | 365 | | |
366 | | - | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
367 | 370 | | |
368 | 371 | | |
369 | 372 | | |
| |||
853 | 856 | | |
854 | 857 | | |
855 | 858 | | |
| 859 | + | |
856 | 860 | | |
857 | 861 | | |
858 | 862 | | |
859 | 863 | | |
860 | 864 | | |
861 | 865 | | |
862 | | - | |
| 866 | + | |
| 867 | + | |
| 868 | + | |
| 869 | + | |
863 | 870 | | |
864 | 871 | | |
865 | 872 | | |
| |||
868 | 875 | | |
869 | 876 | | |
870 | 877 | | |
| 878 | + | |
| 879 | + | |
| 880 | + | |
| 881 | + | |
871 | 882 | | |
872 | 883 | | |
873 | 884 | | |
| |||
0 commit comments