Skip to content

Commit

Permalink
adapt snapshot-test.conf to fix DefaultSnapshotConfigTest;
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Maute <stefan.maute@bosch.io>
  • Loading branch information
Stefan Maute committed Jul 5, 2021
1 parent 2ba33f6 commit 7910f93
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public final class DefaultSnapshotConfig implements SnapshotConfig {

private DefaultSnapshotConfig(final ScopedConfig config) {
interval = config.getNonNegativeAndNonZeroDurationOrThrow(SnapshotConfigValue.INTERVAL);
threshold = config.getPositiveLongOrThrow(SnapshotConfigValue.THRESHOLD);
threshold = config.getNonNegativeIntOrThrow((SnapshotConfigValue.THRESHOLD));
}

/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
snapshot {
interval = 100d
threshold = 0
threshold = 1
}

0 comments on commit 7910f93

Please sign in to comment.