Skip to content

Commit 79cafb3

Browse files
sanderv32TheHardGamer
authored andcommitted
Fix tests
1 parent 23b2ef0 commit 79cafb3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/test/java/org/jenkinsci/plugins/gogs/GogsWebHookTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ public void whenEmptyHeaderTypeMustReturnError() throws Exception {
8989
//validate that everything was done as planed
9090
verify(staplerResponse).setStatus(403);
9191

92-
String expectedOutput = "Only push event can be accepted.";
92+
String expectedOutput = "Only push or release events are accepted.";
9393
isExpectedOutput(uniqueFile, expectedOutput);
9494

9595
log.info("Test succeeded.");
@@ -110,7 +110,7 @@ public void whenWrongHeaderTypeMustReturnError() throws Exception {
110110
//validate that everything was done as planed
111111
verify(staplerResponse).setStatus(403);
112112

113-
String expectedOutput = "Only push event can be accepted.";
113+
String expectedOutput = "Only push or release events are accepted.";
114114
isExpectedOutput(uniqueFile, expectedOutput);
115115

116116
log.info("Test succeeded.");

0 commit comments

Comments
 (0)