Skip to content

Commit

Permalink
Merge pull request #269 from skotambkar/update-v1.1
Browse files Browse the repository at this point in the history
updates smithy-go to v1.1.0
  • Loading branch information
skotambkar authored Feb 9, 2021
2 parents 1c00381 + f285cfc commit e9104d8
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ private static GoDependency relativePackage(
private static final class Versions {
private static final String GO_STDLIB = "1.15";
private static final String GO_CMP = "v0.5.4";
private static final String SMITHY_GO = "v1.0.0";
private static final String SMITHY_GO = "v1.1.0";
private static final String GO_JMESPATH = "v0.4.0";
}
}
4 changes: 2 additions & 2 deletions encoding/xml/xml_decoder_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -183,11 +183,11 @@ func TestXMLNodeDecoder_Value(t *testing.T) {
expectedValue: []byte(`abc`),
},
"no value": {
responseBody: bytes.NewReader([]byte(`<Response></Response>`)),
responseBody: bytes.NewReader([]byte(`<Response></Response>`)),
expectedValue: []byte{},
},
"self-closing": {
responseBody: bytes.NewReader([]byte(`<Response />`)),
responseBody: bytes.NewReader([]byte(`<Response />`)),
expectedValue: []byte{},
},
"empty body": {
Expand Down
2 changes: 1 addition & 1 deletion time/time.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ func ParseHTTPDate(value string) (time.Time, error) {
// Example: 1515531081.123
func FormatEpochSeconds(value time.Time) float64 {
ms := value.UnixNano() / int64(time.Millisecond)
return float64(ms)/1e3
return float64(ms) / 1e3
}

// ParseEpochSeconds returns value as a Unix time in seconds with with decimal precision
Expand Down
2 changes: 1 addition & 1 deletion time/time_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ func TestEpochSeconds(t *testing.T) {
expectedTime: time.Date(2018, 1, 9, 20, 51, 21, 1.23e8, time.UTC),
},
{
reference: time.Unix(0, math.MaxInt64).UTC(),
reference: time.Unix(0, math.MaxInt64).UTC(),
expectedUnix: 9223372036.854,
expectedTime: time.Date(2262, 04, 11, 23, 47, 16, 8.54e8, time.UTC),
},
Expand Down
2 changes: 1 addition & 1 deletion transport/http/middleware_content_length_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ func TestContentLengthMiddleware(t *testing.T) {
ExpectLen: 5,
},
"empty stream": {
Stream: strings.NewReader(""),
Stream: strings.NewReader(""),
ExpectLen: 0,
},
"nil stream": {
Expand Down
3 changes: 1 addition & 2 deletions transport/http/middleware_http_logging_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,7 @@ func TestRequestResponseLogger(t *testing.T) {
Output *smithyhttp.Response
ExpectedLog string
}{
"no logging": {
},
"no logging": {},
"request": {
Middleware: smithyhttp.RequestResponseLogger{
LogRequest: true,
Expand Down

0 comments on commit e9104d8

Please sign in to comment.