summaryrefslogtreecommitdiff
path: root/refs_test.go
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2017-05-19 21:18:43 +0200
committerChristian Pointner <equinox@spreadspace.org>2017-05-19 21:23:30 +0200
commit36ef789f056d9ba55810c0a21bc4560b13325e74 (patch)
tree1b029c8b9f524e2c5e2772f89313b148da5a07c3 /refs_test.go
parentfixed default config (diff)
upgraded to lates release
Diffstat (limited to 'refs_test.go')
-rw-r--r--refs_test.go8
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)