Skip to content

Commit

Permalink
delete test disk files if they already exist other we'd fail the test (
Browse files Browse the repository at this point in the history
  • Loading branch information
tiagolobocastro committed Mar 18, 2020
1 parent 6fe3257 commit 3c860e1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mayastor/tests/nexus_simple_rebuild.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ static NEXUS_SIZE: u64 = 10 * 1024 * 1024; // 10MiB
#[test]
fn rebuild_test() {

common::delete_file(&[DISKNAME1.into(), DISKNAME2.into()]);
common::truncate_file(DISKNAME1, NEXUS_SIZE / 1024);
common::truncate_file(DISKNAME2, NEXUS_SIZE / 1024);

Expand Down

0 comments on commit 3c860e1

Please sign in to comment.