Skip to content

Commit

Permalink
Merge pull request #1154 from zregvart/pr/fix-version-test
Browse files Browse the repository at this point in the history
Fix the version test
  • Loading branch information
zregvart authored Nov 8, 2023
2 parents 5fc4117 + 6b1567c commit 56c569d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/version/version_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,12 @@ func TestVersionInfoStringer(t *testing.T) {
},
}

assert.Equal(t, `Version v1
assert.Regexp(t, `^Version v1
Source ID abc
Change date 2009-11-10 23:00:00 +0000 UTC (13 years ago)
Change date 2009-11-10 23:00:00 \+0000 UTC \(\d{2} years ago\)
dep1 v1
dep2 v2
`, fmt.Sprintf("%v", vi))
$`, fmt.Sprintf("%v", vi))
}

func TestComputeInfo(t *testing.T) {
Expand Down

0 comments on commit 56c569d

Please sign in to comment.