Update tests which should now work given default duration value.

pull/3467/head
derekpierre 2024-03-26 16:12:25 -04:00
parent 74cc426cb1
commit dbbeb233d1
No known key found for this signature in database
2 changed files with 1 additions and 4 deletions

View File

@ -16,7 +16,6 @@ from nucypher.crypto.powers import TransactingPower
def test_sampling_distribution( def test_sampling_distribution(
testerchain, testerchain,
taco_application_agent, taco_application_agent,
taco_child_application_agent, # TODO undo and fix as part of #3458
threshold_staking, threshold_staking,
coordinator_agent, coordinator_agent,
deployer_account, deployer_account,
@ -62,7 +61,7 @@ def test_sampling_distribution(
sampled, failed = 0, 0 sampled, failed = 0, 0
while sampled < SAMPLES: while sampled < SAMPLES:
try: try:
reservoir = taco_child_application_agent.get_staking_provider_reservoir() reservoir = taco_application_agent.get_staking_provider_reservoir()
addresses = set(reservoir.draw(quantity)) addresses = set(reservoir.draw(quantity))
addresses.discard(NULL_ADDRESS) addresses.discard(NULL_ADDRESS)
except taco_application_agent.NotEnoughStakingProviders: except taco_application_agent.NotEnoughStakingProviders:

View File

@ -87,8 +87,6 @@ def test_get_staker_population(taco_application_agent, staking_providers):
) )
# TODO #3458
@pytest.mark.skip("Skip until issue #3458 is addressed")
@pytest.mark.usefixtures("staking_providers", "ursulas") @pytest.mark.usefixtures("staking_providers", "ursulas")
def test_sample_staking_providers(taco_application_agent): def test_sample_staking_providers(taco_application_agent):
all_staking_providers = list(taco_application_agent.get_staking_providers()) all_staking_providers = list(taco_application_agent.get_staking_providers())