From 176c1913fad672f514c9c9499f69e7a54cd93b20 Mon Sep 17 00:00:00 2001 From: Steven Allen Date: Wed, 12 Jun 2019 18:50:15 -0700 Subject: [PATCH] ci: skip slow benchmarks --- test/integration/bench_test.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/integration/bench_test.go b/test/integration/bench_test.go index bc5a22ea91dc..fd1a7446ac76 100644 --- a/test/integration/bench_test.go +++ b/test/integration/bench_test.go @@ -4,10 +4,14 @@ import ( "testing" "github.com/ipfs/go-ipfs/thirdparty/unit" + ci "github.com/libp2p/go-libp2p-testing/ci" testutil "github.com/libp2p/go-libp2p-testing/net" ) func benchmarkAddCat(numBytes int64, conf testutil.LatencyConfig, b *testing.B) { + if numBytes > 128*unit.MB && ci.IsRunning() { + b.Skip("skipping memory intensive benchmark in ci") + } b.StopTimer() b.SetBytes(numBytes)