File tree 2 files changed +9
-9
lines changed
2 files changed +9
-9
lines changed Original file line number Diff line number Diff line change 98
98
http .StatusBadRequest : codes .InvalidArgument ,
99
99
http .StatusTooManyRequests : codes .ResourceExhausted ,
100
100
http .StatusNotFound : codes .NotFound ,
101
- // http.StatusConflict: codes.FailedPrecondition,
101
+ http .StatusConflict : codes .FailedPrecondition ,
102
102
}
103
103
104
104
// Regular expressions for validating parent_id, key and value of a resource tag.
Original file line number Diff line number Diff line change @@ -1241,14 +1241,14 @@ func TestCodeForError(t *testing.T) {
1241
1241
}),
1242
1242
expCode : codes .NotFound ,
1243
1243
},
1244
- // {
1245
- // name: "googleapi.Error that wraps apierror.APIError of http kind status conflict",
1246
- // inputErr: getGoogleAPIWrappedError(&googleapi.Error{
1247
- // Code: 409,
1248
- // Message: "status conflict error",
1249
- // }),
1250
- // expCode: codes.FailedPrecondition,
1251
- // },
1244
+ {
1245
+ name : "googleapi.Error that wraps apierror.APIError of http kind status conflict" ,
1246
+ inputErr : getGoogleAPIWrappedError (& googleapi.Error {
1247
+ Code : 409 ,
1248
+ Message : "status conflict error" ,
1249
+ }),
1250
+ expCode : codes .FailedPrecondition ,
1251
+ },
1252
1252
{
1253
1253
name : "googleapi.Error that wraps apierror.APIError of status kind" ,
1254
1254
inputErr : getGoogleAPIWrappedError (status .New (
You can’t perform that action at this time.
0 commit comments