@@ -5,18 +5,18 @@ use mithril_common::{
5
5
entities:: { Beacon , ProtocolParameters } ,
6
6
test_utils:: MithrilFixtureBuilder ,
7
7
} ;
8
- use test_extensions:: { utilities:: get_test_dir, RuntimeTester } ;
8
+ use test_extensions:: { utilities:: get_test_dir, ExpectedCertificate , RuntimeTester } ;
9
9
10
10
#[ tokio:: test]
11
- async fn simple_scenario ( ) {
11
+ async fn genesis_to_signing ( ) {
12
12
let protocol_parameters = ProtocolParameters {
13
13
k : 5 ,
14
14
m : 100 ,
15
15
phi_f : 0.65 ,
16
16
} ;
17
17
let configuration = Configuration {
18
18
protocol_parameters : protocol_parameters. clone ( ) ,
19
- data_stores_directory : get_test_dir ( "simple_scenario " ) . join ( "aggregator.sqlite3" ) ,
19
+ data_stores_directory : get_test_dir ( "genesis_to_signing " ) . join ( "aggregator.sqlite3" ) ,
20
20
..Configuration :: new_sample ( )
21
21
} ;
22
22
let mut tester =
@@ -34,6 +34,14 @@ async fn simple_scenario() {
34
34
comment ! ( "Boostrap the genesis certificate" ) ;
35
35
tester. register_genesis_certificate ( & fixture) . await . unwrap ( ) ;
36
36
37
+ assert_last_certificate_eq ! (
38
+ tester,
39
+ ExpectedCertificate :: new_genesis(
40
+ Beacon :: new( "devnet" . to_string( ) , 1 , 1 ) ,
41
+ fixture. compute_and_encode_avk( )
42
+ )
43
+ ) ;
44
+
37
45
comment ! ( "Increase immutable number" ) ;
38
46
tester. increase_immutable_number ( ) . await . unwrap ( ) ;
39
47
0 commit comments