mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-03-09 14:34:43 +00:00
Added failure message to test
This commit is contained in:
parent
785624e96b
commit
f273981f37
@ -56,7 +56,8 @@ public class PreBuiltTransportClientTests extends RandomizedTest {
|
||||
new PreBuiltTransportClient(Settings.EMPTY, plugin);
|
||||
fail("exception expected");
|
||||
} catch (IllegalArgumentException ex) {
|
||||
assertTrue(ex.getMessage().startsWith("plugin already exists: "));
|
||||
assertTrue("Expected message to start with [plugin already exists: ] but was instead [" + ex.getMessage() + "]",
|
||||
ex.getMessage().startsWith("plugin already exists: "));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user