commit | d654f6f41310794cfb8f961c2ae32c8f81dd8ca5 | [log] [tgz] |
---|---|---|
author | Alice Kober-Sotzek <aliceks@google.com> | Mon Oct 02 16:01:40 2017 +0200 |
committer | Alice Kober-Sotzek <aliceks@google.com> | Mon Oct 02 16:01:40 2017 +0200 |
tree | 64c95f2fffdd953d97c6b6a39e3cec5e664feeb7 | |
parent | 709f0d5d5730f772ed5e85ab1c5bb3e4a47b897b [diff] |
Adjust DownstreamCreatorIT to work with latest Gerrit core Change-Id: Iac5e04a5c8e05fb29d2ae467a4708b08d8a007bd
diff --git a/src/test/java/com/googlesource/gerrit/plugins/automerger/DownstreamCreatorIT.java b/src/test/java/com/googlesource/gerrit/plugins/automerger/DownstreamCreatorIT.java index d04fd1d..5848852 100644 --- a/src/test/java/com/googlesource/gerrit/plugins/automerger/DownstreamCreatorIT.java +++ b/src/test/java/com/googlesource/gerrit/plugins/automerger/DownstreamCreatorIT.java
@@ -251,7 +251,7 @@ // Freeze time so that the merge commit from left->bottom and right->bottom have same SHA TestTimeUtil.resetWithClockStep(0, TimeUnit.MILLISECONDS); - TestTimeUtil.setClock(new Timestamp(TestTimeUtil.START.getMillis())); + TestTimeUtil.setClock(new Timestamp(TestTimeUtil.START.toEpochMilli())); // After we upload our config, we upload a new patchset to create the downstreams. PushOneCommit.Result result = createChange("subject", "filename2", "echo Hello", "sometopic"); TestTimeUtil.useSystemTime();