test: if notify is not null and needs to be unequal then just invert notify

Original commit: elastic/x-pack-elasticsearch@2de9536c9c
This commit is contained in:
Martijn van Groningen 2015-08-28 19:57:10 +02:00
parent a14a11ebdb
commit 967a3d1da2
1 changed files with 1 additions and 1 deletions

View File

@ -153,7 +153,7 @@ public class HipChatMessageTests extends ESTestCase {
}
if (rarely()) {
equals = false;
notify = notify == null ? (Boolean) randomBoolean() : randomBoolean() ? null : (Boolean) randomBoolean();
notify = notify == null ? (Boolean) randomBoolean() : randomBoolean() ? null : !notify;
}
}