diff --git a/crates/rust/platform/tests/rust_platform_test.rs b/crates/rust/platform/tests/rust_platform_test.rs index d89c36b4010..46010e75da9 100644 --- a/crates/rust/platform/tests/rust_platform_test.rs +++ b/crates/rust/platform/tests/rust_platform_test.rs @@ -342,7 +342,16 @@ mod target_command { assert_eq!( command.bin, - sandbox.path().join("bin").join("sea-orm").to_str().unwrap() + sandbox + .path() + .join("bin") + .join(if cfg!(windows) { + "sea-orm.exe" + } else { + "sea-orm" + }) + .to_str() + .unwrap() ); assert_eq!(command.args, &["migrate", "-u"]); }