Skip to content

Commit

Permalink
Do not issue candidacy announcements in the validators API tests
Browse files Browse the repository at this point in the history
  • Loading branch information
muXxer committed May 15, 2024
1 parent 18c057c commit d3a7438
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions tools/docker-network/tests/api_core_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit d3a7438

Please sign in to comment.