From feb1aa3fe30a6169d84479db75b9ee7089c6b5d3 Mon Sep 17 00:00:00 2001 From: abhishek-kumar Date: Thu, 7 Sep 2023 00:15:17 -0700 Subject: [PATCH] Comments --- .../ranger/audit/utils/RangerJSONAuditWriterTest.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/agents-audit/src/test/java/org/apache/ranger/audit/utils/RangerJSONAuditWriterTest.java b/agents-audit/src/test/java/org/apache/ranger/audit/utils/RangerJSONAuditWriterTest.java index 2099dd3d8d..b7f1534d1f 100644 --- a/agents-audit/src/test/java/org/apache/ranger/audit/utils/RangerJSONAuditWriterTest.java +++ b/agents-audit/src/test/java/org/apache/ranger/audit/utils/RangerJSONAuditWriterTest.java @@ -17,10 +17,10 @@ import static org.mockito.Mockito.when; public class RangerJSONAuditWriterTest { + public Properties props; public Map auditConfigs; - public void setup(){ props = new Properties(); props.setProperty("test.dir", "/tmp"); @@ -86,7 +86,7 @@ public void checkFileRolloverAfterThreshold() throws Exception { assertTrue(jsonAuditWriter.logJSON(Collections.singleton("First file created and added this line!"))); - jsonAuditWriter.fileSystem.deleteOnExit(jsonAuditWriter.auditPath); + jsonAuditWriter.fileSystem.deleteOnExit(jsonAuditWriter.auditPath); // cleanup Thread.sleep(6000); assertFalse(jsonAuditWriter.reUseLastLogFile); @@ -94,7 +94,7 @@ public void checkFileRolloverAfterThreshold() throws Exception { assertNull(jsonAuditWriter.logWriter); assertTrue(jsonAuditWriter.logJSON(Collections.singleton("Second file created since rollover happened!"))); - jsonAuditWriter.fileSystem.deleteOnExit(jsonAuditWriter.auditPath); + jsonAuditWriter.fileSystem.deleteOnExit(jsonAuditWriter.auditPath); // cleanup jsonAuditWriter.closeWriter(); } }