Skip to content

Commit

Permalink
Style fix
Browse files Browse the repository at this point in the history
  • Loading branch information
erm-g committed Nov 6, 2024
1 parent eec38e5 commit 82718d1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,16 +69,16 @@ public void setUp() throws IOException {
new FileWatcherCertificateProviderProvider(
fileWatcherCertificateProviderFactory, scheduledExecutorServiceFactory, timeProvider);
saveEnvironment();
provider.enableSpiffe = enableSpiffe;
FileWatcherCertificateProviderProvider.enableSpiffe = enableSpiffe;
}

private void saveEnvironment() {
originalEnableSpiffe = provider.enableSpiffe;
originalEnableSpiffe = FileWatcherCertificateProviderProvider.enableSpiffe;
}

@After
public void restoreEnvironment() {
provider.enableSpiffe = originalEnableSpiffe;
FileWatcherCertificateProviderProvider.enableSpiffe = originalEnableSpiffe;
}

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,16 +115,16 @@ public void setUp() throws IOException {
new FileWatcherCertificateProvider(watcher, true, certFile, keyFile, rootFile, null, 600L,
timeService, timeProvider);
saveEnvironment();
provider.enableSpiffe = enableSpiffe;
FileWatcherCertificateProvider.enableSpiffe = enableSpiffe;
}

private void saveEnvironment() {
originalEnableSpiffe = provider.enableSpiffe;
originalEnableSpiffe = FileWatcherCertificateProvider.enableSpiffe;
}

@After
public void restoreEnvironment() {
provider.enableSpiffe = originalEnableSpiffe;
FileWatcherCertificateProvider.enableSpiffe = originalEnableSpiffe;
}

@Parameters(name = "enableSpiffe={0}")
Expand Down

0 comments on commit 82718d1

Please sign in to comment.