Commit 020c9c9
committed
fix(barbican): propagate context cancellation and fix data race in tests
- doRequestWithRetry now checks ctx.Err() before wrapping the final
error, so callers see a context cancellation instead of a generic
'maximum retry attempts' API error.
- TestEncryptMultiRegion guards shared secretStores/secretCounters
maps with a sync.Mutex to eliminate the data race detected by
-race.1 parent 11b494b commit 020c9c9
2 files changed
Lines changed: 14 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
686 | 686 | | |
687 | 687 | | |
688 | 688 | | |
| 689 | + | |
| 690 | + | |
| 691 | + | |
| 692 | + | |
| 693 | + | |
| 694 | + | |
689 | 695 | | |
690 | 696 | | |
691 | 697 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
| |||
843 | 844 | | |
844 | 845 | | |
845 | 846 | | |
| 847 | + | |
846 | 848 | | |
847 | 849 | | |
| 850 | + | |
848 | 851 | | |
849 | 852 | | |
| 853 | + | |
850 | 854 | | |
851 | 855 | | |
852 | 856 | | |
853 | 857 | | |
854 | 858 | | |
| 859 | + | |
855 | 860 | | |
856 | 861 | | |
| 862 | + | |
857 | 863 | | |
858 | 864 | | |
859 | 865 | | |
| |||
874 | 880 | | |
875 | 881 | | |
876 | 882 | | |
| 883 | + | |
877 | 884 | | |
| 885 | + | |
878 | 886 | | |
879 | 887 | | |
880 | 888 | | |
| |||
0 commit comments