Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -469,8 +469,11 @@ public void testIfMatchOverwriteWithOutdatedEtag() throws Throwable {
.as("ETag should not be null after file creation")
.isNotNull();

String updatedFileContent = "Updated content";
byte[] updatedData = updatedFileContent.getBytes(StandardCharsets.UTF_8);

// Overwrite the file. Will update the etag, making the previously fetched etag outdated.
createFileWithFlags(fs, path, SMALL_FILE_BYTES, false, null);
createFileWithFlags(fs, path, updatedData, false, null);

// overwrite file with outdated etag. Should throw RemoteFileChangedException
RemoteFileChangedException exception = intercept(RemoteFileChangedException.class,
Expand Down