mirror of
https://github.com/mii443/wasmer.git
synced 2025-12-08 05:38:19 +00:00
Fix unit tests
This commit is contained in:
@@ -11,9 +11,6 @@ pub struct Whoami {
|
|||||||
impl Whoami {
|
impl Whoami {
|
||||||
/// Execute `wasmer whoami`
|
/// Execute `wasmer whoami`
|
||||||
pub fn execute(&self) -> Result<(), anyhow::Error> {
|
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())?;
|
let (registry, username) = wasmer_registry::whoami(self.registry.as_deref())?;
|
||||||
println!("logged into registry {registry:?} as user {username:?}");
|
println!("logged into registry {registry:?} as user {username:?}");
|
||||||
Ok(())
|
Ok(())
|
||||||
|
|||||||
Reference in New Issue
Block a user