fix context in Send() (#857)
He Liu authored 5 years ago
Peter Bourgon committed 5 years ago
0 | 0 |
package cloudwatch2
|
1 | 1 |
|
2 | 2 |
import (
|
|
3 |
"net/http"
|
3 | 4 |
"strings"
|
4 | 5 |
"testing"
|
5 | 6 |
|
|
86 | 87 |
// going across the wire, you just create a dumb aws.Request with either
|
87 | 88 |
// aws.Request.Data defined (for succes) or with aws.Request.Error
|
88 | 89 |
// to simulate an Error.
|
89 | |
Request: &aws.Request{Data: &cloudwatch.PutMetricDataOutput{}},
|
90 | |
Input: in,
|
|
90 |
Request: &aws.Request{
|
|
91 |
HTTPRequest: &http.Request{Method: "PUT"},
|
|
92 |
Data: &cloudwatch.PutMetricDataOutput{},
|
|
93 |
},
|
|
94 |
Input: in,
|
91 | 95 |
}
|
92 | 96 |
}
|
93 | 97 |
|