Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions azuredevops/models_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ func TestModels_Unmarshal_Time(t *testing.T) {

parsedTime, err := time.Parse(time.RFC3339Nano, "2019-09-01T00:07:26Z")
if err != nil {
t.Errorf(err.Error())
t.Error(err.Error())
}
if testModel.Time2.Time != parsedTime {
t.Errorf("Expected time: %v Actual time: %v", parsedTime, testModel.Time2.Time)
Expand All @@ -46,13 +46,13 @@ func TestModels_Marshal_Unmarshal_Time(t *testing.T) {
testModel1.Time1.Time = time.Now()
b, err := json.Marshal(testModel1)
if err != nil {
t.Errorf(err.Error())
t.Error(err.Error())
}

testModel2 := TestModel{}
err = json.Unmarshal(b, &testModel2)
if err != nil {
t.Errorf(err.Error())
t.Error(err.Error())
}

if testModel1.Time1 != testModel1.Time1 {
Expand Down
6 changes: 3 additions & 3 deletions azuredevops/v6/models_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ func TestModels_Unmarshal_Time(t *testing.T) {

parsedTime, err := time.Parse(time.RFC3339Nano, "2019-09-01T00:07:26Z")
if err != nil {
t.Errorf(err.Error())
t.Error(err.Error())
}
if testModel.Time2.Time != parsedTime {
t.Errorf("Expected time: %v Actual time: %v", parsedTime, testModel.Time2.Time)
Expand All @@ -46,13 +46,13 @@ func TestModels_Marshal_Unmarshal_Time(t *testing.T) {
testModel1.Time1.Time = time.Now()
b, err := json.Marshal(testModel1)
if err != nil {
t.Errorf(err.Error())
t.Error(err.Error())
}

testModel2 := TestModel{}
err = json.Unmarshal(b, &testModel2)
if err != nil {
t.Errorf(err.Error())
t.Error(err.Error())
}

if testModel1.Time1 != testModel1.Time1 {
Expand Down
6 changes: 3 additions & 3 deletions azuredevops/v7/models_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ func TestModels_Unmarshal_Time(t *testing.T) {

parsedTime, err := time.Parse(time.RFC3339Nano, "2019-09-01T00:07:26Z")
if err != nil {
t.Errorf(err.Error())
t.Error(err.Error())
}
if testModel.Time2.Time != parsedTime {
t.Errorf("Expected time: %v Actual time: %v", parsedTime, testModel.Time2.Time)
Expand All @@ -46,13 +46,13 @@ func TestModels_Marshal_Unmarshal_Time(t *testing.T) {
testModel1.Time1.Time = time.Now()
b, err := json.Marshal(testModel1)
if err != nil {
t.Errorf(err.Error())
t.Error(err.Error())
}

testModel2 := TestModel{}
err = json.Unmarshal(b, &testModel2)
if err != nil {
t.Errorf(err.Error())
t.Error(err.Error())
}

if testModel1.Time1 != testModel1.Time1 {
Expand Down