Fix unit tests

This commit is contained in:
Felix Schütt
2022-11-20 11:23:29 +01:00
parent e9048b9e27
commit 6141043c28

View File

@@ -11,9 +11,6 @@ pub struct Whoami {
impl Whoami {
/// Execute `wasmer whoami`
pub fn execute(&self) -> Result<(), anyhow::Error> {
#[cfg(test)]
let (registry, username) = wasmer_registry::whoami("whoami", self.registry.as_deref())?;
#[cfg(not(test))]
let (registry, username) = wasmer_registry::whoami(self.registry.as_deref())?;
println!("logged into registry {registry:?} as user {username:?}");
Ok(())