File tree Expand file tree Collapse file tree
runtime/src/test/java/com/fnproject/fn/runtime Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -215,11 +215,12 @@ public void shouldReadBytesOnDefaultCodec() throws Exception {
215215 public void shouldPrintLogFrame () throws Exception {
216216 fn .setConfig ("FN_LOGFRAME_NAME" , "containerID" );
217217 fn .setConfig ("FN_LOGFRAME_HDR" , "fnID" );
218- fn .givenEvent ().withHeader ("fnID" , "uhfieuwfhieuwh " ).withBody ( "Hello world!" ).enqueue ();
218+ fn .givenEvent ().withHeader ("fnID" , "fnIDVal " ).withBody ( "Hello world!" ).enqueue ();
219219
220220 fn .thenRun (TestFn .class , "fnEcho" );
221221 assertThat (fn .getOnlyOutputAsString ()).isEqualTo ("Hello world!" );
222- assertThat (fn .getStdErrAsString ()).isEqualTo ("" );
222+ // stdout gets redirected to stderr - hence printing out twice
223+ assertThat (fn .getStdErrAsString ()).isEqualTo ("containerID=fnIDVal\n containerID=fnIDVal\n " );
223224
224225 }
225226
You can’t perform that action at this time.
0 commit comments