Commit 7347d6e
[CRE-3579] fix: flaky Test_StratReconciliation_RetriesWithBackoff (#22082)
fix: flaky Test_StratReconciliation_RetriesWithBackoff
Fix data race on retryCount (plain int accessed across goroutines
without synchronization) by using atomic.Int32. Also fix the test to
actually verify retry behavior: wait for the full retry cycle
(2 failures + 1 success) instead of exiting after the first failed
attempt. Use a faster ticker and shorter retry interval to avoid
unnecessary slowness.
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 6c93c02 commit 7347d6e
1 file changed
Lines changed: 13 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
| |||
838 | 839 | | |
839 | 840 | | |
840 | 841 | | |
841 | | - | |
| 842 | + | |
842 | 843 | | |
843 | | - | |
844 | | - | |
| 844 | + | |
845 | 845 | | |
846 | 846 | | |
847 | 847 | | |
| |||
866 | 866 | | |
867 | 867 | | |
868 | 868 | | |
869 | | - | |
| 869 | + | |
| 870 | + | |
870 | 871 | | |
871 | 872 | | |
872 | 873 | | |
873 | 874 | | |
874 | 875 | | |
| 876 | + | |
875 | 877 | | |
876 | | - | |
| 878 | + | |
877 | 879 | | |
878 | 880 | | |
879 | | - | |
880 | | - | |
881 | | - | |
882 | | - | |
| 881 | + | |
| 882 | + | |
| 883 | + | |
| 884 | + | |
| 885 | + | |
| 886 | + | |
883 | 887 | | |
884 | 888 | | |
885 | 889 | | |
| |||
0 commit comments