aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2020-06-07 20:27:18 +0200
committerDmitry Vyukov <dvyukov@google.com>2020-06-07 20:27:18 +0200
commit7751efd04aebb07bc82b5c0e8eeaca07be1ae112 (patch)
treebb6634bd7ad2af37153d208e5ae62822b8618709
parent2c2b926cb74478a86014f40564517f7d424dc899 (diff)
prog: increase number of iterations in a test
The test is random and needs some large number of iterations to pass. It failed for me after an unrelated change in descriptions. So bump number of iterations.
-rw-r--r--prog/prio_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/prog/prio_test.go b/prog/prio_test.go
index a09bd5438..c28c0b610 100644
--- a/prog/prio_test.go
+++ b/prog/prio_test.go
@@ -34,7 +34,7 @@ func TestStaticPriorities(t *testing.T) {
rs := rand.NewSource(0)
// The test is probabilistic and needs some sensible number of iterations to succeed.
// If it fails try to increase the number a bit.
- const iters = 5e4
+ const iters = 1e5
// The first call is the one that creates a resource and the rest are calls that can use that resource.
tests := [][]string{
{"open", "read", "write", "mmap"},