You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: helm.rs
    path of file: ./repos/engine/src/cmd
    
    the code of the file until where you have to start completion: use std::collections::HashSet;
use std::io::{Error, Write};
use std::path::{Path, PathBuf};

use tracing::{error, info};

use crate::cloud_provider::helm::ChartInfo;
use crate::cmd::command::{Command
    
    fn test_upgrade_with_lock_during_install() {
        // We want to check that we manage to install a chart even if a lock is present while it was the first installation
        let HelmTestCtx {
            ref helm,
            ref mut charts,
        } = HelmTestCtx::new("test-upgrade-with-lock-install");

        // check release does not exist yet
        let ret = helm.check_release_exist(&charts[0], &[]);
        assert!(matches!(ret, Err(HelmError::ReleaseDoesNotExist(test)) if test == charts[0].name));

        // Spawn our task killer
        let barrier = Arc::new(Barrier::new(2));
        thread::spawn({
            let barrier = barrier.clone();
            let chart_name = charts[0].name.clone();
            move || {
                barrier.wait();
                thread::sleep(Duration::from_millis(5000));
                let mut cmd = QoveryCommand::new("pkill", &["-9", "-f", &format!("helm.*{chart_name}")], &[]);
                let _ = cmd.exec();
            }
        });

        // install it
        charts[0].values = vec![ChartSetValue {
            key: "initialDelaySeconds".to_string(),
            value: "10".to_string(),
        }];
        barrier.wait();
        let ret = helm.upgrade(&charts[0], &[], &CommandKiller::never());
        assert!(ret.is_err());

        // Release should be locked
        let ret = helm.check_release_exist(&charts[0], &[]);
        assert!(matches!(ret, Ok(release) if release.is_locked()));

        // New installation should work even if a lock is present
        let ret = helm.upgrade(&charts[0], &[], &CommandKiller::never());
        assert!(matches!(ret, Ok(())));

        // Release should not be locked anymore
        let ret = helm.check_release_exist(&charts[0], &[]);
        assert!(matches!(ret, Ok(release) if !release.is_locked()));
    }