diff --git a/tests/context/db.rs b/tests/context/db.rs index 84cba19..82b2f91 100644 --- a/tests/context/db.rs +++ b/tests/context/db.rs @@ -113,8 +113,8 @@ impl<'docker_client> Db<'docker_client> { _node: _, } => DbInfo::Postgres(PostgresInfo { host: host.clone(), - port: port.clone(), - local_port: local_port.clone(), + port: *port, + local_port: *local_port, database_name: "postgres".to_owned(), username: "postgres".to_owned(), password: "postgres".to_owned(), diff --git a/tests/context/redis.rs b/tests/context/redis.rs index ebb2364..c0edec8 100644 --- a/tests/context/redis.rs +++ b/tests/context/redis.rs @@ -136,10 +136,10 @@ impl<'docker_client> Redis<'docker_client> { Ok(Redis { host: "localhost".to_string(), - port: port, + port, inner: RedisInner::Process { - child: child, - monitor_child: monitor_child, + child, + monitor_child, }, }) } @@ -181,7 +181,7 @@ impl<'docker_client> Redis<'docker_client> { fn start_docker(docker: &'docker_client clients::Cli) -> Result, Failed> { let name = "golem_redis"; - let image = RunnableImage::from(testcontainers_modules::redis::Redis::default()) + let image = RunnableImage::from(testcontainers_modules::redis::Redis) .with_tag("7.2") .with_container_name(name) .with_network(NETWORK); diff --git a/tests/worker.rs b/tests/worker.rs index e19edd6..6f23fb9 100644 --- a/tests/worker.rs +++ b/tests/worker.rs @@ -80,13 +80,13 @@ fn make_template( ) -> Result { let env_service = context.env.wasm_root.join("environment-service.wasm"); let cfg = &cli.config; - Ok(cli.run(&[ + cli.run(&[ "template", "add", &cfg.arg('t', "template-name"), &template_name, env_service.to_str().unwrap(), - ])?) + ]) } fn worker_new_instance(