Browse Source

Remove test that touch network

tags/v1.1.0
Andrey Nering 7 years ago
parent
commit
f552b0a207
1 changed files with 2 additions and 14 deletions
  1. 2
    14
      modules/base/tool_test.go

+ 2
- 14
modules/base/tool_test.go View File

@@ -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) {

Loading…
Cancel
Save