From 6f865b0f7fb6d69bd83097fcec17edac109a5fb8 Mon Sep 17 00:00:00 2001 From: chrismcg14 Date: Wed, 13 Apr 2022 20:09:01 -0600 Subject: [PATCH] fix tests --- .../rundeck/plugin/vault/VaultStoragePluginTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/test/java/io/github/valfadeev/rundeck/plugin/vault/VaultStoragePluginTest.java b/src/test/java/io/github/valfadeev/rundeck/plugin/vault/VaultStoragePluginTest.java index a7ff5a7..510540b 100644 --- a/src/test/java/io/github/valfadeev/rundeck/plugin/vault/VaultStoragePluginTest.java +++ b/src/test/java/io/github/valfadeev/rundeck/plugin/vault/VaultStoragePluginTest.java @@ -122,7 +122,7 @@ public void lookUp_refreshesToken_when_currentTokenIsAboutToExpire() throws Conf vaultStoragePlugin.lookup(); - verify(vaultClientProvider).getVaultClient(); + verify(vaultClientProvider, times(2)).getVaultClient(); } @Test @@ -159,6 +159,6 @@ public void lookUp_refreshesToken_when_tokenIsExpired() throws ConfigurationExce vaultStoragePlugin.properties=properties; vaultStoragePlugin.lookup(); - verify(vaultClientProvider).getVaultClient(); + verify(vaultClientProvider, times(2)).getVaultClient(); } }