diff options
author | Christian Pointner <equinox@spreadspace.org> | 2017-05-19 21:18:43 +0200 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2017-05-19 21:23:30 +0200 |
commit | 36ef789f056d9ba55810c0a21bc4560b13325e74 (patch) | |
tree | 1b029c8b9f524e2c5e2772f89313b148da5a07c3 /refs_test.go | |
parent | fixed default config (diff) |
upgraded to lates release
Diffstat (limited to 'refs_test.go')
-rw-r--r-- | refs_test.go | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/refs_test.go b/refs_test.go index 55580c5..cd02871 100644 --- a/refs_test.go +++ b/refs_test.go @@ -5,6 +5,8 @@ import ( "fmt" . "gopkg.in/check.v1" "sort" + + "github.com/coreos/go-semver/semver" ) var _ = Suite(&RefsSuite{}) @@ -173,9 +175,9 @@ func (s *RefsSuite) TestChangeRefs(c *C) { for _, test := range refsTests { c.Logf(test.summary) - v, ok := parseVersion(test.version) - if !ok { - c.Fatalf("Test has an invalid version: %q", test.version) + v, err := semver.NewVersion(test.version) + if err != nil { + c.Fatalf("Test has an invalid version: %q: %v", test.version, err) } changed, versions, err := changeRefs([]byte(test.original), v) |