Skip to content

Commit

Permalink
Add failing reference test
Browse files Browse the repository at this point in the history
Signed-off-by: Alessandro Passaro <[email protected]>
  • Loading branch information
passaro committed Oct 16, 2024
1 parent 6a8a483 commit 944c5b6
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions mountpoint-s3/tests/reftests/harness.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1290,4 +1290,24 @@ mod mutations {
0,
)
}

#[test]
fn regression_put_nested_over_open_file() {
run_test(
TreeNode::Directory(BTreeMap::from([])),
vec![
Op::CreateFile(
ValidName("a".into()),
DirectoryIndex(0),
FileContent(0, FileSize::Small(0)),
),
Op::PutObject(
DirectoryIndex(0),
Name("a/-".into()),
FileContent(0, FileSize::Small(0)),
),
],
0,
)
}
}

0 comments on commit 944c5b6

Please sign in to comment.