Skip to content
Snippets Groups Projects
Commit 1cc5bd07 authored by ribeaudc's avatar ribeaudc
Browse files

fix: - 'HighwaterMarkWatcherTest'.

SVN: 6253
parent ed12624b
No related branches found
No related tags found
No related merge requests found
......@@ -32,7 +32,6 @@ import org.testng.annotations.BeforeMethod;
import org.testng.annotations.DataProvider;
import org.testng.annotations.Test;
import ch.systemsx.cisd.common.highwatermark.HighwaterMarkWatcher;
import ch.systemsx.cisd.common.highwatermark.HighwaterMarkWatcher.HighwaterMarkState;
import ch.systemsx.cisd.common.highwatermark.HighwaterMarkWatcher.IFreeSpaceProvider;
import ch.systemsx.cisd.common.logging.BufferedAppender;
......@@ -198,11 +197,12 @@ public final class HighwaterMarkWatcherTest
});
// Space becomes tight. So inform the administrator.
highwaterMarkWatcher.setPathAndRun(DEFAULT_PATH);
final long missingSpace = DEFAULT_WATERMARK - freeSpaces[i];
assertEquals(String.format(
HighwaterMarkWatcher.NotificationLogChangeListener.WARNING_LOG_FORMAT,
HighwaterMarkWatcher.displayKilobyteValue(freeSpaces[i]), DEFAULT_PATH,
HighwaterMarkWatcher.displayKilobyteValue(DEFAULT_WATERMARK)), logRecorder
.getLogContent());
HighwaterMarkWatcher.displayKilobyteValue(DEFAULT_WATERMARK), HighwaterMarkWatcher
.displayKilobyteValue(missingSpace)), logRecorder.getLogContent());
// Space still "red". Do not inform the administrator. He already knows it.
logRecorder.resetLogContent();
highwaterMarkWatcher.setPathAndRun(DEFAULT_PATH);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment