From 46576c83c2c26f2712eea4748d140e5a9f9dd19b Mon Sep 17 00:00:00 2001 From: muXxer Date: Wed, 15 May 2024 02:21:17 +0200 Subject: [PATCH] Do not issue candidacy announcements in the validators API tests --- tools/docker-network/tests/api_core_test.go | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/tools/docker-network/tests/api_core_test.go b/tools/docker-network/tests/api_core_test.go index 3e4fbd877..8de31ea4c 100644 --- a/tools/docker-network/tests/api_core_test.go +++ b/tools/docker-network/tests/api_core_test.go @@ -319,27 +319,8 @@ func Test_ValidatorsAPI(t *testing.T) { } wg.Wait() - // create a new wait group for the next step - wg = sync.WaitGroup{} - - // issue candidacy payload in the next epoch (fullAccountCreationEpoch + 1), in order to issue it before epochNearingThreshold d.AwaitCommitment(clt.CommittedAPI().TimeProvider().EpochEnd(fullAccountCreationEpoch)) - // issue candidacy payload for each account - for i := range validatorCount { - wg.Add(1) - - go func(validatorNr int) { - defer wg.Done() - - blkID := d.IssueCandidacyPayloadFromAccount(ctx, validatorDataList[validatorNr].wallet) - fmt.Println("Candidacy payload:", blkID.ToHex(), blkID.Slot()) - }(i) - } - wg.Wait() - - d.AwaitCommitment(clt.CommittedAPI().TimeProvider().CurrentSlot()) - // check if all validators are returned from the validators API with pageSize 10 actualValidators := getAllValidatorsOnEpoch(t, clt, 0, 10) require.ElementsMatch(t, expectedValidators, actualValidators)