@@ -7,13 +7,16 @@ async fn test_checkpoint_fallback() {
7
7
8
8
assert_eq ! ( cf. services. get( & networks:: Network :: MAINNET ) , None ) ;
9
9
assert_eq ! ( cf. services. get( & networks:: Network :: GOERLI ) , None ) ;
10
+ assert_eq ! ( cf. services. get( & networks:: Network :: SEPOLIA ) , None ) ;
11
+ assert_eq ! ( cf. services. get( & networks:: Network :: HOLESKY ) , None ) ;
10
12
11
13
assert_eq ! (
12
14
cf. networks,
13
15
[
14
16
networks:: Network :: MAINNET ,
15
17
networks:: Network :: GOERLI ,
16
- networks:: Network :: SEPOLIA
18
+ networks:: Network :: SEPOLIA ,
19
+ networks:: Network :: HOLESKY ,
17
20
]
18
21
. to_vec( )
19
22
) ;
@@ -28,6 +31,8 @@ async fn test_construct_checkpoints() {
28
31
29
32
assert ! ( cf. services[ & networks:: Network :: MAINNET ] . len( ) > 1 ) ;
30
33
assert ! ( cf. services[ & networks:: Network :: GOERLI ] . len( ) > 1 ) ;
34
+ assert ! ( cf. services[ & networks:: Network :: SEPOLIA ] . len( ) > 1 ) ;
35
+ assert ! ( cf. services[ & networks:: Network :: HOLESKY ] . len( ) > 1 ) ;
31
36
}
32
37
33
38
#[ tokio:: test]
@@ -37,7 +42,12 @@ async fn test_fetch_latest_checkpoints() {
37
42
. await
38
43
. unwrap ( ) ;
39
44
let checkpoint = cf
40
- . fetch_latest_checkpoint ( & networks:: Network :: GOERLI )
45
+ . fetch_latest_checkpoint ( & networks:: Network :: SEPOLIA )
46
+ . await
47
+ . unwrap ( ) ;
48
+ assert ! ( checkpoint != H256 :: zero( ) ) ;
49
+ let checkpoint = cf
50
+ . fetch_latest_checkpoint ( & networks:: Network :: HOLESKY )
41
51
. await
42
52
. unwrap ( ) ;
43
53
assert ! ( checkpoint != H256 :: zero( ) ) ;
@@ -58,6 +68,10 @@ async fn test_get_all_fallback_endpoints() {
58
68
assert ! ( !urls. is_empty( ) ) ;
59
69
let urls = cf. get_all_fallback_endpoints ( & networks:: Network :: GOERLI ) ;
60
70
assert ! ( !urls. is_empty( ) ) ;
71
+ let urls = cf. get_all_fallback_endpoints ( & networks:: Network :: SEPOLIA ) ;
72
+ assert ! ( !urls. is_empty( ) ) ;
73
+ let urls = cf. get_all_fallback_endpoints ( & networks:: Network :: HOLESKY ) ;
74
+ assert ! ( !urls. is_empty( ) ) ;
61
75
}
62
76
63
77
#[ tokio:: test]
@@ -70,4 +84,8 @@ async fn test_get_healthy_fallback_endpoints() {
70
84
assert ! ( !urls. is_empty( ) ) ;
71
85
let urls = cf. get_healthy_fallback_endpoints ( & networks:: Network :: GOERLI ) ;
72
86
assert ! ( !urls. is_empty( ) ) ;
87
+ let urls = cf. get_healthy_fallback_endpoints ( & networks:: Network :: SEPOLIA ) ;
88
+ assert ! ( !urls. is_empty( ) ) ;
89
+ let urls = cf. get_healthy_fallback_endpoints ( & networks:: Network :: HOLESKY ) ;
90
+ assert ! ( !urls. is_empty( ) ) ;
73
91
}
0 commit comments