aboutsummaryrefslogtreecommitdiffstats
path: root/test/version_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'test/version_test.go')
-rw-r--r--test/version_test.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/version_test.go b/test/version_test.go
index 5373a15..dab77ad 100644
--- a/test/version_test.go
+++ b/test/version_test.go
@@ -20,17 +20,17 @@ import (
"regexp"
"testing"
- "github.com/stretchr/testify/assert"
+ "github.com/stretchr/testify/require"
)
func TestVersion(t *testing.T) {
var datVersion map[string]interface{}
- assert.Nil(t, HTTPCli.Get("/version", &datVersion))
+ require.Nil(t, HTTPCli.Get("/version", &datVersion))
Debug(t, datVersion)
ver, present := datVersion["version"]
- assert.True(t, present)
+ require.True(t, present)
Debugf(t, "version is %s", ver.(string))
re := regexp.MustCompile("^v*[0-9]+.[0-9]+.[0-9]+$")
- assert.True(t, re.MatchString(ver.(string)))
+ require.True(t, re.MatchString(ver.(string)))
}