File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -166,7 +166,7 @@ func (cw *CloudWatch) Send() error {
166166 Namespace : aws .String (cw .namespace ),
167167 MetricData : batch ,
168168 })
169- _ , err := req .Send ()
169+ _ , err := req .Send (context . TODO () )
170170 return err
171171 })
172172 }
Original file line number Diff line number Diff line change 11package cloudwatch2
22
33import (
4+ "net/http"
45 "strings"
56 "testing"
67
@@ -87,8 +88,11 @@ func (mcw *mockCloudWatch) PutMetricDataRequest(in *cloudwatch.PutMetricDataInpu
8788 // going across the wire, you just create a dumb aws.Request with either
8889 // aws.Request.Data defined (for succes) or with aws.Request.Error
8990 // to simulate an Error.
90- Request : & aws.Request {Data : & cloudwatch.PutMetricDataOutput {}},
91- Input : in ,
91+ Request : & aws.Request {
92+ HTTPRequest : & http.Request {Method : "PUT" },
93+ Data : & cloudwatch.PutMetricDataOutput {},
94+ },
95+ Input : in ,
9296 }
9397}
9498
You can’t perform that action at this time.
0 commit comments