Adapt to changed errors

This commit is contained in:
Dominik Werder
2024-12-08 07:40:19 +01:00
parent 162084d302
commit 477ceb9402
10 changed files with 39 additions and 41 deletions

View File

@@ -26,7 +26,7 @@ pub fn spawn_test_hosts(cluster: Cluster) -> Vec<JoinHandle<Result<(), Error>>>
cluster: cluster.clone(),
name: format!("{}:{}", node.host, node.port),
};
let node_config: Result<NodeConfigCached, Error> = node_config.into();
let node_config: Result<NodeConfigCached, netpod::Error> = node_config.into();
let node_config = node_config.unwrap();
let h = tokio::spawn(httpret::host(node_config, service_version.clone()).map_err(Error::from));
ret.push(h);

View File

@@ -61,7 +61,11 @@ fn events_f64_plain() -> Result<(), Error> {
let node = &cluster.nodes[0];
let url: Url = format!("http://{}:{}/api/1/query", node.host, node.port).parse()?;
let accept = APP_OCTET;
let range = Api1Range::new("1970-01-01T00:00:00Z".try_into()?, "1970-01-01T00:01:00Z".try_into()?)?;
let range = Api1Range::new(
"1970-01-01T00:00:00Z".try_into().map_err(Error::from_string)?,
"1970-01-01T00:01:00Z".try_into().map_err(Error::from_string)?,
)
.map_err(Error::from_string)?;
// TODO the channel list needs to get pre-processed to check for backend prefix!
let ch = ChannelTuple::new(TEST_BACKEND.into(), "test-gen-i32-dim0-v01".into());
let qu = Api1Query::new(range, vec![ch]);