use super::*; #[test] fn websocket_runs_generated_upgrade_echo_and_close() { for profile in [Profile::Dev, Profile::Release] { let binary = build( "websocket", include_str!("websocket.dever"), Some(include_str!("websocket.rs.txt")), profile, ); let output = Command::new(binary).output().unwrap(); assert!( output.status.success(), "{}", String::from_utf8_lossy(&output.stderr) ); assert!(output.stdout.is_empty()); } }