From 3f09b33dd741c57750e27551361810fecb50c671 Mon Sep 17 00:00:00 2001 From: Martin Holst Swende Date: Mon, 30 Sep 2019 19:47:04 +0200 Subject: [PATCH] build: disable long-running tests on travis --- build/ci.go | 2 +- tests/block_test.go | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/build/ci.go b/build/ci.go index 002f6bb15297..347cf95e6861 100644 --- a/build/ci.go +++ b/build/ci.go @@ -315,7 +315,7 @@ func doTest(cmdline []string) { // Test a single package at a time. CI builders are slow // and some tests run into timeouts under load. gotest := goTool("test", buildFlags(env)...) - gotest.Args = append(gotest.Args, "-p", "1", "-timeout", "5m") + gotest.Args = append(gotest.Args, "-p", "1", "-timeout", "5m", "--short") if *coverage { gotest.Args = append(gotest.Args, "-covermode=atomic", "-cover") } diff --git a/tests/block_test.go b/tests/block_test.go index 84fade3bf3bf..3a55e4c34fba 100644 --- a/tests/block_test.go +++ b/tests/block_test.go @@ -26,6 +26,8 @@ func TestBlockchain(t *testing.T) { bt := new(testMatcher) // General state tests are 'exported' as blockchain tests, but we can run them natively. bt.skipLoad(`^GeneralStateTests/`) + // Skip random failures due to selfish mining test + bt.skipLoad(`.*bcForgedTest/bcForkUncle\.json`) // Slow tests bt.slow(`.*bcExploitTest/DelegateCallSpam.json`)