Skip to content

Commit

Permalink
Fix JSON RPC timestamp deser tests
Browse files Browse the repository at this point in the history
Some of the timestamp deserialization tests were using the wrong
members, so this fixes that.
  • Loading branch information
JordonPhillips committed Jul 1, 2020
1 parent bac74d5 commit c7807ce
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -545,21 +545,21 @@ use smithy.test#httpResponseTests
id: "parses_iso8601_timestamps",
protocol: awsJson1_1,
documentation: "Parses iso8601 timestamps",
body: "{\"Timestamp\":\"2000-01-02T20:34:56.000Z\"}",
body: "{\"Iso8601Timestamp\":\"2000-01-02T20:34:56.000Z\"}",
bodyMediaType: "application/json",
params: {
Timestamp: 946845296,
Iso8601Timestamp: 946845296,
},
code: 200,
},
{
id: "parses_httpdate_timestamps",
protocol: awsJson1_1,
documentation: "Parses httpdate timestamps",
body: "{\"Timestamp\":\"Sun, 02 Jan 2000 20:34:56.000 GMT\"}",
body: "{\"HttpdateTimestamp\":\"Sun, 02 Jan 2000 20:34:56.000 GMT\"}",
bodyMediaType: "application/json",
params: {
Timestamp: 946845296,
HttpdateTimestamp: 946845296,
},
code: 200,
},
Expand Down

0 comments on commit c7807ce

Please sign in to comment.