Skip to content

Commit

Permalink
Add failing proptest
Browse files Browse the repository at this point in the history
Adds a failing proptest. This could be a bug in the reference model (it does not account for the fact that the ino is stale).
Signed-off-by: Christian Hagemeier <[email protected]>
  • Loading branch information
c-hagem committed Jan 13, 2025
1 parent 456c7de commit 1dfe711
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions mountpoint-s3/tests/reftests/harness.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1330,4 +1330,43 @@ mod mutations {
0,
)
}

#[test]
fn regression_stale_ino() {
run_test(
TreeNode::Directory(BTreeMap::from([])),

Check warning on line 1337 in mountpoint-s3/tests/reftests/harness.rs

View workflow job for this annotation

GitHub Actions / Formatting

Diff in /home/runner/work/mountpoint-s3/mountpoint-s3/mountpoint-s3/tests/reftests/harness.rs
vec![
Op::CreateFile(
ValidName(
"a".into(),
),
DirectoryIndex(
0,
),
FileContent(
0,
FileSize::Small(0),
),
),
Op::PutObject(
DirectoryIndex(
0,
),
Name(
"a/a".into(),
),
FileContent(
0,
FileSize::Small(0),
),
),
Op::FinishWrite(
InflightWriteIndex(
0,
),
),
],
0
);
}
}

0 comments on commit 1dfe711

Please sign in to comment.