File tree 1 file changed +30
-0
lines changed
common/client-core/src/client/topology_control
1 file changed +30
-0
lines changed Original file line number Diff line number Diff line change @@ -198,3 +198,33 @@ impl PiecewiseTopologyProvider for NymApiPiecewiseProvider {
198
198
self . get_layer_assignments_inner ( ) . await
199
199
}
200
200
}
201
+
202
+ // // Test requires running a local instance of the nym-api binary, for example using:
203
+ // // `RUST_LOG="info" ./target/debug/nym-api run --nyxd-validator "https://rpc.nymtech.net"`
204
+
205
+ // #[cfg(test)]
206
+ // mod test {
207
+ // use std::time::Duration;
208
+
209
+ // use super::*;
210
+ // use nym_bin_common::logging::setup_tracing_logger;
211
+
212
+ // #[tokio::test]
213
+ // async fn local_api_provider_test() {
214
+ // setup_tracing_logger();
215
+ // let mut provider = NymApiTopologyProvider::new(
216
+ // Config::default(),
217
+ // vec!["http://localhost:8000"
218
+ // .parse()
219
+ // .expect("failed to parse api url")],
220
+ // None,
221
+ // None,
222
+ // );
223
+
224
+ // for _ in 0..180 {
225
+ // let topo = provider.get_new_topology().await;
226
+ // assert!(topo.is_some());
227
+ // tokio::time::sleep(Duration::from_secs(30)).await;
228
+ // }
229
+ // }
230
+ // }
You can’t perform that action at this time.
0 commit comments