[TEST] Don't corrupt extraFS files
This commit is contained in:
parent
f2ae29a1cb
commit
9d12c38f44
|
@ -133,7 +133,7 @@ public class RecoverySourceHandlerTests extends ESTestCase {
|
||||||
|
|
||||||
CorruptionUtils.corruptFile(getRandom(), FileSystemUtils.files(tempDir, (p) ->
|
CorruptionUtils.corruptFile(getRandom(), FileSystemUtils.files(tempDir, (p) ->
|
||||||
(p.getFileName().toString().equals("write.lock") ||
|
(p.getFileName().toString().equals("write.lock") ||
|
||||||
Files.isDirectory(p)) == false));
|
p.getFileName().toString().startsWith("extra")) == false));
|
||||||
Store targetStore = newStore(createTempDir(), false);
|
Store targetStore = newStore(createTempDir(), false);
|
||||||
try {
|
try {
|
||||||
handler.sendFiles(store, metas.toArray(new StoreFileMetaData[0]), (md) -> {
|
handler.sendFiles(store, metas.toArray(new StoreFileMetaData[0]), (md) -> {
|
||||||
|
|
Loading…
Reference in New Issue