You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A new commit was merged that does not allow a null attachement &&
text. This is valid for the slack API, as it does not allow this, but
our unit tests did. This commit fixes the broken unit test.
Closes#31948
Copy file name to clipboardExpand all lines: x-pack/plugin/watcher/src/test/java/org/elasticsearch/xpack/watcher/notification/slack/message/SlackMessageTests.java
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -481,7 +481,7 @@ public void testTemplateRender() throws Exception {
481
481
if (randomBoolean()) {
482
482
templateBuilder.setText(randomAlphaOfLength(10));
483
483
}
484
-
if (randomBoolean()) {
484
+
if (templateBuilder.text == null || randomBoolean()) {
0 commit comments