aboutsummaryrefslogtreecommitdiffstats
path: root/modules/base/tool_test.go
diff options
context:
space:
mode:
authorAndrey Nering <andrey.nering@gmail.com>2017-02-25 10:32:15 -0300
committerAndrey Nering <andrey.nering@gmail.com>2017-02-25 10:32:15 -0300
commitf552b0a20796dfe09498cd636d58abbbe49fad23 (patch)
treeb3f37da5775c8b38d86b6e352fb134f400db3bf5 /modules/base/tool_test.go
parentd4a7040c7f12a1fbf12bdc08483baf5838f1bfb9 (diff)
downloadgitea-f552b0a20796dfe09498cd636d58abbbe49fad23.tar.gz
gitea-f552b0a20796dfe09498cd636d58abbbe49fad23.zip
Remove test that touch network
Diffstat (limited to 'modules/base/tool_test.go')
-rw-r--r--modules/base/tool_test.go16
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) {