mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-17 10:25:15 +00:00
[TEST] use toString rather than getDetailedMessage()
This commit is contained in:
parent
dd4a22bfed
commit
84549f334d
@ -581,8 +581,8 @@ public class IndexLookupTests extends ElasticsearchIntegrationTest {
|
||||
}
|
||||
} catch (SearchPhaseExecutionException ex) {
|
||||
assertThat(
|
||||
"got " + ex.getDetailedMessage(),
|
||||
ex.getDetailedMessage().indexOf("Cannot iterate twice! If you want to iterate more that once, add _CACHE explicitly."),
|
||||
"got " + ex.toString(),
|
||||
ex.toString().indexOf("Cannot iterate twice! If you want to iterate more that once, add _CACHE explicitly."),
|
||||
Matchers.greaterThan(-1));
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user