summaryrefslogtreecommitdiffstats
path: root/test/version_test.go
diff options
context:
space:
mode:
authorClément Bénier <clement.benier@iot.bzh>2018-08-21 17:56:10 +0200
committerClément Bénier <clement.benier@iot.bzh>2018-08-21 17:56:10 +0200
commitb1d091a8c6b2269601a1683e963d0e382cd0f7f6 (patch)
treeec60f14ec47211e929d144bde128fbbff5f7c0dc /test/version_test.go
parent4192072863ac0997b0c3cb4131ea913e6f85f83e (diff)
test logs: hide log
logs are printable with VERBOSE != "" Change-Id: I170aed2e73db673ba6276410b1dddd3389239457 Signed-off-by: Clément Bénier <clement.benier@iot.bzh>
Diffstat (limited to 'test/version_test.go')
-rw-r--r--test/version_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/version_test.go b/test/version_test.go
index 275480b..5373a15 100644
--- a/test/version_test.go
+++ b/test/version_test.go
@@ -26,11 +26,11 @@ import (
func TestVersion(t *testing.T) {
var datVersion map[string]interface{}
assert.Nil(t, HTTPCli.Get("/version", &datVersion))
- t.Log(datVersion)
+ Debug(t, datVersion)
ver, present := datVersion["version"]
assert.True(t, present)
- t.Logf("version is %s", ver.(string))
+ Debugf(t, "version is %s", ver.(string))
re := regexp.MustCompile("^v*[0-9]+.[0-9]+.[0-9]+$")
assert.True(t, re.MatchString(ver.(string)))
}