Repository navigation
Commit 66c1cb3
committed
fix(test): avoid mutex copy in TestFindOfferingID_OfferingClassReachesSDKCall
Construct capturingMockEC2Client directly instead of copying *MockEC2Client
to silence the go vet copylocks warning (MockEC2Client embeds mock.Mock
which contains sync.Mutex).1 parent db8203c commit 66c1cb3
1 file changed
Lines changed: 3 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
955 | 955 | | |
956 | 956 | | |
957 | 957 | | |
958 | | - | |
959 | | - | |
| 958 | + | |
| 959 | + | |
960 | 960 | | |
961 | 961 | | |
962 | | - | |
963 | 962 | | |
964 | 963 | | |
965 | 964 | | |
| |||
970 | 969 | | |
971 | 970 | | |
972 | 971 | | |
973 | | - | |
| 972 | + | |
974 | 973 | | |
975 | 974 | | |
976 | 975 | | |
0 commit comments