Skip to content

Commit

Permalink
fixed broken test where time was being parsed
Browse files Browse the repository at this point in the history
  • Loading branch information
matryer committed Mar 30, 2021
1 parent c227566 commit 417d523
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions pkg/update/update_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,8 @@ func TestUpdate(t *testing.T) {
apiServer := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
version := "v2.0.0"
response := Release{
TagName: version,
CreatedAtString: time.Now().Format(time.RFC3339Nano),
TagName: version,
Assets: []Asset{
{
Name: "xbar-" + version + ".tar.gz",
Expand Down Expand Up @@ -129,7 +130,8 @@ func TestMatchingVersions(t *testing.T) {
apiServer := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
version := "v2.1.0"
response := Release{
TagName: version,
CreatedAtString: time.Now().Format(time.RFC3339Nano),
TagName: version,
Assets: []Asset{
{
Name: "xbar-" + version + ".tar.gz",
Expand Down Expand Up @@ -176,7 +178,8 @@ func TestLocalVersionIsHigher(t *testing.T) {
apiServer := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
version := "v2.1.0"
response := Release{
TagName: version,
CreatedAtString: time.Now().Format(time.RFC3339Nano),
TagName: version,
Assets: []Asset{
{
Name: "xbar-" + version + ".tar.gz",
Expand Down

0 comments on commit 417d523

Please sign in to comment.