#![cfg(feature = "test-integration")] use std::time::Duration; use anyhow::Result; use tokio::time; use crate::common; const OUTPUT_VIRTUALCAM: &str = "virtualcam_output"; #[tokio::test] async fn outputs() -> Result<()> { let client = common::new_client().await?; let client = client.outputs(); time::sleep(Duration::from_secs(1)).await; client.list().await?; client.status(OUTPUT_VIRTUALCAM).await?; client.toggle(OUTPUT_VIRTUALCAM).await?; time::sleep(Duration::from_secs(1)).await; client.toggle(OUTPUT_VIRTUALCAM).await?; time::sleep(Duration::from_secs(1)).await; client.start(OUTPUT_VIRTUALCAM).await?; time::sleep(Duration::from_secs(1)).await; client.stop(OUTPUT_VIRTUALCAM).await?; let settings = client .settings::(OUTPUT_VIRTUALCAM) .await?; client.set_settings(OUTPUT_VIRTUALCAM, &settings).await?; Ok(()) }