Skip to content

Commit 9d6a6bf

Browse files
committed
Update tests to reflect new changes
1 parent 9e34f29 commit 9d6a6bf

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

src/test/java/software/amazon/lambda/snapstart/LambdaHandlerInitedWithRandomValueTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,8 @@ public void timestampMemberFieldBreaksSnapStart() {
118118
assertThat(bugCollection, containsExactly(1, bugMatcherBuilder.atField("tsFromInstantNow").atLine(26).build()));
119119
assertThat(bugCollection, containsExactly(1, bugMatcherBuilder.atField("tsFromClock").atLine(27).build()));
120120
toBeFixed(() -> assertThat(bugCollection, containsExactly(1, bugMatcherBuilder.atField("logName").atLine(29).build())));
121-
assertThat(bugCollection, containsExactly(4, snapStartBugMatcher().build()));
122-
toBeFixed(() -> assertThat(bugCollection, containsExactly(5, snapStartBugMatcher().build())));
121+
assertThat(bugCollection, containsExactly(8, snapStartBugMatcher().build()));
122+
toBeFixed(() -> assertThat(bugCollection, containsExactly(9, snapStartBugMatcher().build())));
123123
}
124124

125125
@Test

src/test/java/software/amazon/lambda/snapstart/lambdaexamples/LambdaUsingTs.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,10 @@ public String handleRequest(Map<String, String> event, Context context) {
5353
out.println(tsFromSystemTimeNano);
5454
out.println(tsFromInstantNow);
5555
out.println(tsFromClock);
56+
out.println(tsFromLocalDateTimeNow);
57+
out.println(tsFromLocalDateNow);
58+
out.println(tsFromLocalTimeNow);
59+
out.println(tsFromZonedDateTimeNow);
5660
return "200";
5761
}
5862
}

0 commit comments

Comments
 (0)