From 9fdf4149efc7f5510e7ce944e15c828ce3a4a154 Mon Sep 17 00:00:00 2001 From: Matthias <5011972+fasmat@users.noreply.github.com> Date: Fri, 1 Mar 2024 10:25:19 +0000 Subject: [PATCH] Run test e2e test with random post size --- activation/e2e/activation_test.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/activation/e2e/activation_test.go b/activation/e2e/activation_test.go index 70caf0c904..7e09cb31cd 100644 --- a/activation/e2e/activation_test.go +++ b/activation/e2e/activation_test.go @@ -2,6 +2,7 @@ package activation_test import ( "context" + "math/rand" "sync" "testing" "time" @@ -70,6 +71,7 @@ func Test_BuilderWithMultipleClients(t *testing.T) { require.NoError(t, err) opts.DataDir = t.TempDir() + opts.NumUnits = uint32(rand.Int31n(int32(cfg.MaxNumUnits/2-cfg.MinNumUnits))) + cfg.MinNumUnits initPost(t, mgr, opts, sig.NodeID()) t.Cleanup(launchPostSupervisor(t, logger, mgr, sig.NodeID(), grpcCfg, opts))