Skip to content

Commit 40dae1a

Browse files
committed
fix: don't copy celestia.
1 parent 29c3469 commit 40dae1a

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

migration/util/node-types/src/executor/movement_executor.rs

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -508,4 +508,24 @@ mod test {
508508

509509
Ok(())
510510
}
511+
512+
// Somehow the following test is failing on CI: https://github.com/movementlabsxyz/movement-migration/actions/runs/15386989846/job/43287594343
513+
#[test]
514+
fn test_are_you_kidding_me() -> Result<(), anyhow::Error> {
515+
516+
let source_dir = TempDir::new()?;
517+
let target_dir = TempDir::new()?;
518+
519+
let path_that_must_be_ignored = source_dir.path().join(".movement/celestia/c1860ae680eb2d91927b/.celestia-app/keyring-test");
520+
521+
fs::create_dir_all(path_that_must_be_ignored.parent().context("failed to get parent directory for path that must be ignored")?).context("failed to create directory")?;
522+
fs::write(path_that_must_be_ignored, "test").context("failed to write file that must not be ignored")?;
523+
524+
copy_dir_recursive_with_ignore(source_dir.path(), ["celestia"], target_dir.path()).context("failed to copy directory")?;
525+
526+
assert!(!target_dir.path().join("celestia").join("c1860ae680eb2d91927b").join(".celestia-app").join("keyring-test").exists());
527+
528+
Ok(())
529+
}
530+
511531
}

0 commit comments

Comments
 (0)