Fix broken test in FileSystemUtilsTests
Commit ee84ce09d7
changed an exception
message without changing the corresponding test. This commit fixes the
related test.
This commit is contained in:
parent
274ee30d34
commit
adc1184dd0
|
@ -113,7 +113,7 @@ public class FileSystemUtilsTests extends ESTestCase {
|
|||
try (InputStream is = FileSystemUtils.openFileURLStream(urlWithWrongProtocol)) {
|
||||
fail("Should throw IllegalArgumentException due to invalid protocol");
|
||||
} catch (IllegalArgumentException e) {
|
||||
assertEquals("Invalid protocol [http], must be [file]", e.getMessage());
|
||||
assertEquals("Invalid protocol [http], must be [file] or [jar]", e.getMessage());
|
||||
}
|
||||
|
||||
URL urlWithHost = new URL("file", "localhost", txtFile.toString());
|
||||
|
|
Loading…
Reference in New Issue