@@ -15,12 +15,12 @@ use super::{
1515 Network , OnClientDrop ,
1616} ;
1717
18- pub struct ExistingNetTestingConfig {
18+ pub struct RemoteNetTestingConfig {
1919 faucet : Faucet ,
2020}
2121
22- impl ExistingNetTestingConfig {
23- /// Creates a new [`ExistingNetTestingConfig `] for running tests with an existing Linera
22+ impl RemoteNetTestingConfig {
23+ /// Creates a new [`RemoteNetTestingConfig `] for running tests with an external Linera
2424 /// network.
2525 ///
2626 /// The `faucet_url` is used to connect to the network and obtain its configuration,
@@ -39,14 +39,14 @@ impl ExistingNetTestingConfig {
3939}
4040
4141#[ async_trait]
42- impl LineraNetConfig for ExistingNetTestingConfig {
43- type Net = ExistingNet ;
42+ impl LineraNetConfig for RemoteNetTestingConfig {
43+ type Net = RemoteNet ;
4444
4545 async fn instantiate ( self ) -> Result < ( Self :: Net , ClientWrapper ) > {
4646 let seed = 37 ;
47- let mut net = ExistingNet :: new ( Some ( seed) , & self . faucet )
47+ let mut net = RemoteNet :: new ( Some ( seed) , & self . faucet )
4848 . await
49- . expect ( "Creating ExistingNet should not fail" ) ;
49+ . expect ( "Creating RemoteNet should not fail" ) ;
5050
5151 let client = net. make_client ( ) . await ;
5252 // The tests assume we've created a genesis config with 2
@@ -78,18 +78,18 @@ impl LineraNetConfig for ExistingNetTestingConfig {
7878
7979/// Remote net
8080#[ derive( Clone ) ]
81- pub struct ExistingNet {
81+ pub struct RemoteNet {
8282 network : Network ,
8383 testing_prng_seed : Option < u64 > ,
8484 next_client_id : usize ,
8585 tmp_dir : Arc < TempDir > ,
8686}
8787
8888#[ async_trait]
89- impl LineraNet for ExistingNet {
89+ impl LineraNet for RemoteNet {
9090 async fn ensure_is_running ( & mut self ) -> Result < ( ) > {
9191 // Leaving this just returning for now.
92- // We would have to connect to each validator in the existing net then run
92+ // We would have to connect to each validator in the remote net then run
9393 // ensure_connected_cluster_is_running
9494 Ok ( ( ) )
9595 }
@@ -113,12 +113,12 @@ impl LineraNet for ExistingNet {
113113 }
114114
115115 async fn terminate ( & mut self ) -> Result < ( ) > {
116- // We're not killing the existing network :)
116+ // We're not killing the remote net :)
117117 Ok ( ( ) )
118118 }
119119}
120120
121- impl ExistingNet {
121+ impl RemoteNet {
122122 async fn new ( testing_prng_seed : Option < u64 > , faucet : & Faucet ) -> Result < Self > {
123123 let tmp_dir = Arc :: new ( tempdir ( ) ?) ;
124124 // Write json config to disk
0 commit comments