mirror of
https://github.com/ipfs/kubo.git
synced 2025-06-28 00:39:31 +08:00
make timing tests actually not run under CI
License: MIT Signed-off-by: Jeromy <jeromyj@gmail.com>
This commit is contained in:
@ -11,8 +11,6 @@ import (
|
||||
|
||||
testutil "github.com/ipfs/go-ipfs/util/testutil"
|
||||
ci "github.com/ipfs/go-ipfs/util/testutil/ci"
|
||||
jenkins "github.com/ipfs/go-ipfs/util/testutil/ci/jenkins"
|
||||
travis "github.com/ipfs/go-ipfs/util/testutil/ci/travis"
|
||||
|
||||
ma "github.com/ipfs/go-ipfs/Godeps/_workspace/src/github.com/jbenet/go-multiaddr"
|
||||
manet "github.com/ipfs/go-ipfs/Godeps/_workspace/src/github.com/jbenet/go-multiaddr-net"
|
||||
@ -117,7 +115,7 @@ func TestDialWait(t *testing.T) {
|
||||
defer s1.Close()
|
||||
|
||||
s1.dialT = time.Millisecond * 300 // lower timeout for tests.
|
||||
if travis.IsRunning() {
|
||||
if ci.IsRunning() {
|
||||
s1.dialT = time.Second
|
||||
}
|
||||
|
||||
@ -151,7 +149,7 @@ func TestDialWait(t *testing.T) {
|
||||
|
||||
func TestDialBackoff(t *testing.T) {
|
||||
// t.Skip("skipping for another test")
|
||||
if travis.IsRunning() || jenkins.IsRunning() {
|
||||
if ci.IsRunning() {
|
||||
t.Skip("travis and jenkins will never have fun with this test")
|
||||
}
|
||||
|
||||
|
@ -16,7 +16,7 @@ type EnvVar string
|
||||
|
||||
// Environment variables that TravisCI uses.
|
||||
const (
|
||||
VarCI EnvVar = "TEST_NO_FUSE"
|
||||
VarCI EnvVar = "CI"
|
||||
VarNoFuse EnvVar = "TEST_NO_FUSE"
|
||||
VarVerbose EnvVar = "TEST_VERBOSE"
|
||||
)
|
||||
|
Reference in New Issue
Block a user