Skip to content

Commit 944c5b6

Browse files
committed
Add failing reference test
Signed-off-by: Alessandro Passaro <[email protected]>
1 parent 6a8a483 commit 944c5b6

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

mountpoint-s3/tests/reftests/harness.rs

+20
Original file line numberDiff line numberDiff line change
@@ -1290,4 +1290,24 @@ mod mutations {
12901290
0,
12911291
)
12921292
}
1293+
1294+
#[test]
1295+
fn regression_put_nested_over_open_file() {
1296+
run_test(
1297+
TreeNode::Directory(BTreeMap::from([])),
1298+
vec![
1299+
Op::CreateFile(
1300+
ValidName("a".into()),
1301+
DirectoryIndex(0),
1302+
FileContent(0, FileSize::Small(0)),
1303+
),
1304+
Op::PutObject(
1305+
DirectoryIndex(0),
1306+
Name("a/-".into()),
1307+
FileContent(0, FileSize::Small(0)),
1308+
),
1309+
],
1310+
0,
1311+
)
1312+
}
12931313
}

0 commit comments

Comments
 (0)