diff options
author | Andrey Nering <andrey.nering@gmail.com> | 2017-02-25 11:27:45 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-25 11:27:45 -0300 |
commit | c4a3d5148dc16e5c267773469c8ca011fcee8cfa (patch) | |
tree | 41740f18ff682e889c0de42e95c178f3c7a2b731 | |
parent | fc4f7e82f997c11497ce818d4fa13e561c780ae1 (diff) | |
parent | f552b0a20796dfe09498cd636d58abbbe49fad23 (diff) | |
download | gitea-c4a3d5148dc16e5c267773469c8ca011fcee8cfa.tar.gz gitea-c4a3d5148dc16e5c267773469c8ca011fcee8cfa.zip |
Merge pull request #1053 from andreynering/do-not-test-libravatar
Remove test that touch network
-rw-r--r-- | modules/base/tool_test.go | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/modules/base/tool_test.go b/modules/base/tool_test.go index 739e03266e..43d4df32f7 100644 --- a/modules/base/tool_test.go +++ b/modules/base/tool_test.go @@ -1,15 +1,14 @@ package base import ( + "os" "testing" + "time" "code.gitea.io/gitea/modules/setting" "github.com/Unknwon/i18n" macaroni18n "github.com/go-macaron/i18n" "github.com/stretchr/testify/assert" - "os" - "strk.kbt.io/projects/go/libravatar" - "time" ) var BaseDate time.Time @@ -139,17 +138,6 @@ func TestAvatarLink(t *testing.T) { "353cbad9b58e69c96154ad99f92bedc7", AvatarLink("gitea@example.com"), ) - - setting.EnableFederatedAvatar = true - assert.Equal(t, - "353cbad9b58e69c96154ad99f92bedc7", - AvatarLink("gitea@example.com"), - ) - setting.LibravatarService = libravatar.New() - assert.Equal(t, - "http://cdn.libravatar.org/avatar/353cbad9b58e69c96154ad99f92bedc7", - AvatarLink("gitea@example.com"), - ) } func TestComputeTimeDiff(t *testing.T) { |