File tree Expand file tree Collapse file tree
powertools-e2e-tests/src/test/java/software/amazon/lambda/powertools Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ void test_getMetadata() throws Exception {
6262
6363 // THEN
6464 assertThat (invocationResult .getFunctionError ())
65- .describedAs ("Lambda function failed: %s" , invocationResult .getResult ())
65+ .describedAs ("Lambda function failed: %s" , invocationResult .getFunctionError ())
6666 .isNull ();
6767
6868 JsonNode response = JsonConfig .get ().getObjectMapper ().readTree (invocationResult .getResult ());
@@ -78,10 +78,10 @@ void test_metadataCaching() throws Exception {
7878
7979 // THEN - both should return the same AZ ID (cached within sandbox)
8080 assertThat (firstResult .getFunctionError ())
81- .describedAs ("Lambda function failed on first invocation: %s" , firstResult .getResult ())
81+ .describedAs ("Lambda function failed on first invocation: %s" , firstResult .getFunctionError ())
8282 .isNull ();
8383 assertThat (secondResult .getFunctionError ())
84- .describedAs ("Lambda function failed on second invocation: %s" , secondResult .getResult ())
84+ .describedAs ("Lambda function failed on second invocation: %s" , secondResult .getFunctionError ())
8585 .isNull ();
8686
8787 JsonNode firstResponse = JsonConfig .get ().getObjectMapper ().readTree (firstResult .getResult ());
You can’t perform that action at this time.
0 commit comments