Skip to content

Commit

Permalink
[#25887] fix(JmsIO): replace google timestamp with java instant #25887
Browse files Browse the repository at this point in the history
Fixes #25887

Co-Authored-By: Amrane Ait Zeouay <122456352+amranezeRenault@users.noreply.github.com>
  • Loading branch information
Amraneze and amranezeRenault committed Apr 5, 2023
1 parent eae4611 commit feaf32b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@
import static org.junit.Assert.assertNotEquals;
import static org.junit.Assert.assertTrue;

import com.google.cloud.Timestamp;
import java.io.IOException;
import java.io.Serializable;
import java.time.Instant;
import java.util.Arrays;
import java.util.Collection;
import java.util.HashSet;
Expand Down Expand Up @@ -243,7 +243,7 @@ private PipelineResult publishingMessages() {

private void collectAndPublishMetrics(PipelineResult writeResult, PipelineResult readResult) {
String uuid = UUID.randomUUID().toString();
String timestamp = Timestamp.now().toString();
String timestamp = Instant.now().toString();

Set<Function<MetricsReader, NamedTestResult>> readSuppliers =
getMetricsSuppliers(uuid, timestamp, READ_TIME_METRIC);
Expand Down

0 comments on commit feaf32b

Please sign in to comment.