Skip to content

Commit 4b46f38

Browse files
committed
Set creation timestamp using Instant
1 parent 75fca96 commit 4b46f38

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/java/cd/go/contrib/elasticagent/executors/ServerPingRequestExecutorTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public void setUp() {
6868
when(podResource.get()).thenReturn(mockedPod);
6969

7070
objectMetadata = new ObjectMeta();
71-
objectMetadata.setCreationTimestamp(getSimpleDateFormat().format(Instant.now()));
71+
objectMetadata.setCreationTimestamp(Instant.now().toString());
7272

7373
when(mockedPod.getMetadata()).thenReturn(objectMetadata);
7474

0 commit comments

Comments
 (0)