[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) {
|
} catch (SearchPhaseExecutionException ex) {
|
||||||
assertThat(
|
assertThat(
|
||||||
"got " + ex.getDetailedMessage(),
|
"got " + ex.toString(),
|
||||||
ex.getDetailedMessage().indexOf("Cannot iterate twice! If you want to iterate more that once, add _CACHE explicitly."),
|
ex.toString().indexOf("Cannot iterate twice! If you want to iterate more that once, add _CACHE explicitly."),
|
||||||
Matchers.greaterThan(-1));
|
Matchers.greaterThan(-1));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue