Skip to content

Commit

Permalink
fix: #![cfg(target_os = "linux")] whole telnet-host integration
Browse files Browse the repository at this point in the history
Instead of just the test functions themselves. There's no need to
compile all this code if we're never using it.
  • Loading branch information
abesto committed Feb 22, 2025
1 parent 51f1104 commit 3f2761e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions crates/telnet-host/tests/integration_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
// this program. If not, see <https://www.gnu.org/licenses/>.
//

#![cfg(target_os = "linux")]

use moor_moot::{MootOptions, telnet::ManagedChild, test_db_path};
use serial_test::serial;
use std::net::TcpListener;
Expand Down Expand Up @@ -159,21 +161,18 @@ fn test_moot_with_telnet_host<P: AsRef<Path>>(moot_file: P) {
drop(telnet_host);
}

#[cfg(target_os = "linux")]
#[test]
#[serial(telnet_host)]
fn test_echo() {
test_moot_with_telnet_host("echo");
}

#[cfg(target_os = "linux")]
#[test]
#[serial(telnet_host)]
fn test_suspend_read_notify() {
test_moot_with_telnet_host("suspend_read_notify");
}

#[cfg(target_os = "linux")]
#[test]
#[serial(telnet_host)]
fn test_huh() {
Expand Down

0 comments on commit 3f2761e

Please sign in to comment.