jenkins timeout workaround (#2285)

This commit is contained in:
Bryan White 2019-06-21 16:04:34 +02:00 committed by GitHub
parent 5b030062c0
commit 09e55ca28e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -8,6 +8,7 @@ import (
"os/exec"
"path/filepath"
"testing"
"time"
"github.com/stretchr/testify/require"
"go.uber.org/zap/zapcore"
@ -25,7 +26,7 @@ func RunPlanet(t *testing.T, run func(ctx *testcontext.Context, planet *testplan
zaptest.NewLogger(t, zaptest.Level(zapcore.WarnLevel)),
testplanet.Config{
SatelliteCount: 1,
StorageNodeCount: 8,
StorageNodeCount: 6,
UplinkCount: 1,
Reconfigure: testplanet.DisablePeerCAWhitelist,
},
@ -42,7 +43,7 @@ func RunPlanet(t *testing.T, run func(ctx *testcontext.Context, planet *testplan
}
func TestC(t *testing.T) {
ctx := testcontext.New(t)
ctx := testcontext.NewWithTimeout(t, 5*time.Minute)
defer ctx.Cleanup()
libuplink := ctx.CompileShared(t, "uplink", "storj.io/storj/lib/uplinkc")