Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-pages.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Thomas <nick@gitlab.com>2019-09-11 16:46:05 +0300
committerNick Thomas <nick@gitlab.com>2019-09-12 14:18:00 +0300
commit26d8e2d1197e0ffb9c0fcd47bb61ef35a901f67b (patch)
tree0829e6f01c15972e1780ed9fc1f42d993350c830 /config_test.go
parentdd802698dba879ef5eeeb7b4f4abd03364f3788f (diff)
Remove github.com/stretchr/testify/assert
The "assert" form is difficult to use correctly and complicates test understanding. I think we should insist on using require *only* in our tests across GitLab.
Diffstat (limited to 'config_test.go')
-rw-r--r--config_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/config_test.go b/config_test.go
index 3ec51c56..a13f1188 100644
--- a/config_test.go
+++ b/config_test.go
@@ -3,7 +3,7 @@ package main
import (
"testing"
- "github.com/stretchr/testify/assert"
+ "github.com/stretchr/testify/require"
)
func TestGitLabServerFromFlags(t *testing.T) {
@@ -48,7 +48,7 @@ func TestGitLabServerFromFlags(t *testing.T) {
gitLabServer = &test.gitLabServer
gitLabAuthServer = &test.gitLabAuthServer
artifactsServer = &test.artifactsServer
- assert.Equal(t, test.expected, gitlabServerFromFlags())
+ require.Equal(t, test.expected, gitlabServerFromFlags())
})
}
}