Skip to content

Commit

Permalink
Fix UT
Browse files Browse the repository at this point in the history
  • Loading branch information
voidint committed Apr 3, 2022
1 parent 641b6be commit c57d2d5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions version/collector_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -277,8 +277,8 @@ func TestURLUnreachableError(t *testing.T) {
e, ok := err.(*errs.URLUnreachableError)
So(ok, ShouldBeTrue)
So(e, ShouldNotBeNil)
So(e.URL, ShouldEqual, url)
So(e.Err, ShouldEqual, core)
So(e.URL(), ShouldEqual, url)
So(e.Err(), ShouldEqual, core)
So(e.Error(), ShouldEqual, fmt.Sprintf("URL %q is unreachable ==> %s", url, core.Error()))
})
}
4 changes: 2 additions & 2 deletions version/version_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,8 @@ func TestDownloadError(t *testing.T) {
e, ok := err.(*errs.DownloadError)
So(ok, ShouldBeTrue)
So(e, ShouldNotBeNil)
So(e.URL, ShouldEqual, url)
So(e.Err, ShouldEqual, core)
So(e.URL(), ShouldEqual, url)
So(e.Err(), ShouldEqual, core)
So(e.Error(), ShouldEqual, fmt.Sprintf("Installation package(%s) download failed ==> %s", url, core.Error()))
})
}
Expand Down

0 comments on commit c57d2d5

Please sign in to comment.