Skip to content

Commit 5ec9635

Browse files
committed
Another attempt at logging a failed result...sigh
1 parent 6f5493c commit 5ec9635

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

integration-tests/src/main/java/com/fnproject/fn/integrationtest/IntegrationTestRule.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,10 +153,11 @@ public CmdResult runFnWithInput(String input, String... args) throws Exception {
153153
CmdResult res = runFnWithInputAllowError(input, args);
154154

155155
if (res.isSuccess() == false) {
156+
System.err.println("FN FAIL!");
156157
System.err.println(res.toString());
157158
}
158159

159-
Assertions.assertThat(res.isSuccess()).withFailMessage("Expected command '" + res.cmd + "' to return 0.").isTrue();
160+
Assertions.assertThat(res.isSuccess()).withFailMessage("Expected command '" + res.cmd + "' to return 0." + "FN FAIL: " + res).isTrue();
160161
return res;
161162
}
162163

integration-tests/src/test/java/com/fnproject/fn/integrationtest/FunctionsTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public void checkBoilerPlate() throws Exception {
4848
for (String format : new String[]{"http-stream"}) {
4949
for (String runtime : new String[]{"java9", "java8"}) {
5050
IntegrationTestRule.TestContext tc = testRule.newTest();
51-
tc.withDirFrom("funcs/hellofunc");
51+
tc.withDirFrom("funcs/helloFunc");
5252

5353
String fnName = "bp" + format + runtime;
5454
tc.runFn("init", "--runtime", runtime, "--name", fnName, "--format", format);

0 commit comments

Comments
 (0)