commit | 2aab2f9e33caad6d3c5fd86c4257ee9c8f77fa09 | [log] [tgz] |
---|---|---|
author | Han-Wen Nienhuys <hanwen@google.com> | Tue Jun 13 11:39:22 2017 +0200 |
committer | Han-Wen Nienhuys <hanwen@google.com> | Tue Jun 13 11:39:22 2017 +0200 |
tree | bb73e428b88a03f2b83414d87adca340a926314a | |
parent | 5c003d1291ed39a92eeaca2067e876bd9bedf842 [diff] |
Stop calling unregisterWorkqueue which was removed in gerrit Change-Id: Ibdc7f7e61a8b64a8a5e79ed3f7add1ff3ad91d3d
diff --git a/src/main/java/com/ericsson/gerrit/plugins/syncindex/SyncIndexExecutorProvider.java b/src/main/java/com/ericsson/gerrit/plugins/syncindex/SyncIndexExecutorProvider.java index 0400506..7a53fbe 100644 --- a/src/main/java/com/ericsson/gerrit/plugins/syncindex/SyncIndexExecutorProvider.java +++ b/src/main/java/com/ericsson/gerrit/plugins/syncindex/SyncIndexExecutorProvider.java
@@ -41,7 +41,6 @@ @Override public void stop() { executor.shutdown(); - executor.unregisterWorkQueue(); executor = null; }
diff --git a/src/test/java/com/ericsson/gerrit/plugins/syncindex/SyncIndexExecutorProviderTest.java b/src/test/java/com/ericsson/gerrit/plugins/syncindex/SyncIndexExecutorProviderTest.java index a48dd9b..3833883 100644 --- a/src/test/java/com/ericsson/gerrit/plugins/syncindex/SyncIndexExecutorProviderTest.java +++ b/src/test/java/com/ericsson/gerrit/plugins/syncindex/SyncIndexExecutorProviderTest.java
@@ -56,7 +56,6 @@ assertThat(syncIndexExecutorProvider.get()).isEqualTo(executorMock); syncIndexExecutorProvider.stop(); verify(executorMock).shutdown(); - verify(executorMock).unregisterWorkQueue(); assertThat(syncIndexExecutorProvider.get()).isNull(); } }