Skip to content

Commit

Permalink
minor rename
Browse files Browse the repository at this point in the history
  • Loading branch information
Nick Iodice committed May 16, 2020
1 parent b260ae5 commit ff7ae62
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions azuredevops/time_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ type TimeTestStruct struct {
T Time
}

func getJSONBytes(timeStr string) []byte {
func getJSONAsBytes(timeStr string) []byte {
return []byte(fmt.Sprintf("{ \"T\": \"%s\" }", timeStr))
}

Expand Down Expand Up @@ -84,7 +84,7 @@ func TestTime_MarshallingRoundTripForSupportedCases(t *testing.T) {

t.Run(testCase.name, func(t *testing.T) {
s := TimeTestStruct{}
err := json.Unmarshal(getJSONBytes(testCase.timeStr), &s)
err := json.Unmarshal(getJSONAsBytes(testCase.timeStr), &s)
if err != nil {
t.Errorf("Unexpectedly could not unmarshal %s into a valid time struct: %+v", testCase.timeStr, err)
}
Expand Down

0 comments on commit ff7ae62

Please sign in to comment.