@@ -2711,7 +2711,7 @@ func TestIntegration_Encryption(t *testing.T) {
2711
2711
multiTransportTest (context .Background (), t , func (t * testing.T , ctx context.Context , bucket , _ string , client * Client ) {
2712
2712
h := testHelper {t }
2713
2713
2714
- obj := client .Bucket (bucket ).Object ("customer-encryption" )
2714
+ obj := client .Bucket (bucket ).Object ("customer-encryption" ). Retryer ( WithPolicy ( RetryAlways ))
2715
2715
key := []byte ("my-secret-AES-256-encryption-key" )
2716
2716
keyHash := sha256 .Sum256 (key )
2717
2717
keyHashB64 := base64 .StdEncoding .EncodeToString (keyHash [:])
@@ -2791,8 +2791,8 @@ func TestIntegration_Encryption(t *testing.T) {
2791
2791
2792
2792
// We create 2 objects here and we can interleave operations to get around
2793
2793
// the rate limit for object mutation operations (create, update, and delete).
2794
- obj2 := client .Bucket (bucket ).Object ("customer-encryption-2" )
2795
- obj4 := client .Bucket (bucket ).Object ("customer-encryption-4" )
2794
+ obj2 := client .Bucket (bucket ).Object ("customer-encryption-2" ). Retryer ( WithPolicy ( RetryAlways ))
2795
+ obj4 := client .Bucket (bucket ).Object ("customer-encryption-4" ). Retryer ( WithPolicy ( RetryAlways ))
2796
2796
2797
2797
// Copying an object without the key should fail.
2798
2798
if _ , err := obj4 .CopierFrom (obj ).Run (ctx ); err == nil {
@@ -2825,7 +2825,7 @@ func TestIntegration_Encryption(t *testing.T) {
2825
2825
if _ , err := obj2 .Key (key ).CopierFrom (obj2 .Key (key2 )).Run (ctx ); err != nil {
2826
2826
t .Fatal (err )
2827
2827
}
2828
- obj3 := client .Bucket (bucket ).Object ("customer-encryption-3" )
2828
+ obj3 := client .Bucket (bucket ).Object ("customer-encryption-3" ). Retryer ( WithPolicy ( RetryAlways ))
2829
2829
// Composing without keys should fail.
2830
2830
if _ , err := obj3 .ComposerFrom (obj , obj2 ).Run (ctx ); err == nil {
2831
2831
t .Fatal ("want error, got nil" )
@@ -2846,7 +2846,7 @@ func TestIntegration_Encryption(t *testing.T) {
2846
2846
// encrypted destination object.
2847
2847
_ , err := obj4 .CopierFrom (obj2 .Key (key )).Run (ctx ) // unencrypt obj2
2848
2848
if err != nil {
2849
- t .Fatal ( err )
2849
+ t .Fatalf ( "Copier.Run: %v" , err )
2850
2850
}
2851
2851
if _ , err := obj3 .Key (key ).ComposerFrom (obj4 ).Run (ctx ); err == nil {
2852
2852
t .Fatal ("got nil, want error" )
0 commit comments