Skip to content

Commit 496c04a

Browse files
authored
test: add lock to flaky appimage install tests (#292)
1 parent b7aeb90 commit 496c04a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

crates/fig_desktop/src/install.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -924,8 +924,12 @@ echo "{binary_name} {version}"
924924
assert_eq!(parse_version("cli 1.2.3"), "1.2.3");
925925
}
926926

927+
static INSTALL_TEST_LOCK: tokio::sync::Mutex<()> = tokio::sync::Mutex::const_new(());
928+
927929
#[tokio::test]
928930
async fn test_linux_appimage_install_on_fresh_system() {
931+
let _lock = INSTALL_TEST_LOCK.lock().await;
932+
929933
tracing_subscriber::fmt::try_init().ok();
930934

931935
// Given
@@ -942,6 +946,8 @@ echo "{binary_name} {version}"
942946

943947
#[tokio::test]
944948
async fn test_linux_appimage_install_when_installed_binaries_have_old_version() {
949+
let _lock = INSTALL_TEST_LOCK.lock().await;
950+
945951
tracing_subscriber::fmt::try_init().ok();
946952

947953
// Given

0 commit comments

Comments
 (0)