mirror of
https://github.com/mii443/wasmer.git
synced 2025-12-07 13:18:20 +00:00
Fix unit tests
This commit is contained in:
@@ -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(())
|
||||
|
||||
Reference in New Issue
Block a user