changeset 1178:650f353776c0

minor
author Devel 2
date Tue, 16 Jun 2020 16:50:42 +0200
parents a17b7932f949
children 5b26ab5c635e
files stress-tester/src/test/java/com/passus/st/config/MetricsConfiguratorTest.java
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/stress-tester/src/test/java/com/passus/st/config/MetricsConfiguratorTest.java	Tue Jun 16 16:47:21 2020 +0200
+++ b/stress-tester/src/test/java/com/passus/st/config/MetricsConfiguratorTest.java	Tue Jun 16 16:50:42 2020 +0200
@@ -52,7 +52,7 @@
                 "destinations:\n"
                 + "  - type: file\n"
                 + "    maxFileSize: 10 KiB\n"
-                + "    fileName: /file\n";
+                + "    fileName: ./file\n";
         MetricsConfigurator configurator = new MetricsConfigurator();
         Configuration config = YamlConfigurationReader.readFromString(metricsCfg);
 
@@ -65,7 +65,7 @@
 
         assertTrue(appenders.get(0) instanceof FileMetricsCollectionAppender);
         FileMetricsCollectionAppender appender = (FileMetricsCollectionAppender) appenders.get(0);
-        assertEquals(new File(context.getRootDir(), "/file").toString(), appender.getFileName());
+        assertEquals(new File(context.getRootDir(), "./file").toString(), appender.getFileName());
         assertEquals(10 * 1024, appender.getMaxFileSize());
     }
 }