Skip to content

Commit 15493f2

Browse files
committed
Optimize end to end test execution time
1 parent 1479feb commit 15493f2

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

mithril-test-lab/mithril-end-to-end/src/end_to_end_spec.rs

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ impl Spec {
4141
bootstrap_genesis_certificate(self.infrastructure.aggregator_mut()).await?;
4242
wait_for_epoch_settings(&aggregator_endpoint).await?;
4343

44-
// Wait 2 epochs before changing stake distribution, so that we use at least once original stake distribution
44+
// Wait 2 epochs before changing stake distribution, so that we use at least one original stake distribution
4545
target_epoch += 2;
4646
wait_for_target_epoch(
4747
self.infrastructure.chain_observer(),
@@ -51,23 +51,22 @@ impl Spec {
5151
.await?;
5252
delegate_stakes_to_pools(self.infrastructure.devnet()).await?;
5353

54-
// Wait 5 epochs after stake delegation, so that we make sure that we use new stake distribution a few times
55-
target_epoch += 5;
54+
// Wait 2 epochs before changing protocol parameters
55+
target_epoch += 2;
5656
wait_for_target_epoch(
5757
self.infrastructure.chain_observer(),
5858
target_epoch,
59-
"epoch after which the certificate chain will be long enough to catch most common troubles with stake distribution".to_string(),
59+
"epoch after which the protocol parameters will change".to_string(),
6060
)
6161
.await?;
62-
63-
// Wait 5 epochs after updating protocol parameters, so that we make sure that we use new protocol parameters a few times
6462
update_protocol_parameters(self.infrastructure.aggregator_mut()).await?;
65-
wait_for_epoch_settings(&aggregator_endpoint).await?;
66-
target_epoch += 5;
63+
64+
// Wait 4 epochs after protocol parameters update, so that we make sure that we use new protocol parameters as well as new stake distribution a few times
65+
target_epoch += 4;
6766
wait_for_target_epoch(
6867
self.infrastructure.chain_observer(),
6968
target_epoch,
70-
"epoch after which the certificate chain will be long enough to catch most common troubles with protocol parameters".to_string(),
69+
"epoch after which the certificate chain will be long enough to catch most common troubles with stake distribution and protocol parameters".to_string(),
7170
)
7271
.await?;
7372

0 commit comments

Comments
 (0)