Skip to content

Commit 616f74b

Browse files
authored
Merge pull request #9298 from alphaprinz/backport_19_b
[backport into 19] fix notification storage nc health test
2 parents 12f2fe9 + d635665 commit 616f74b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/test/unit_tests/test_nc_health.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,9 @@ mocha.describe('nsfs nc health', function() {
240240
const health_status = await Health.nc_nsfs_health();
241241
Health.notif_storage_limit = false;
242242

243-
assert.strictEqual(health_status.checks.notif_storage_threshold_details.result, 'above threshold');
243+
console.log("PSA fs stats =", fs.statfsSync(config.NOTIFICATION_LOG_DIR));
244+
245+
assert(health_status.checks.notif_storage_threshold_details.result.indexOf(' threshold') > -1);
244246
assert.strictEqual(health_status.checks.notif_storage_threshold_details.threshold, config.NOTIFICATION_SPACE_CHECK_THRESHOLD);
245247
});
246248

0 commit comments

Comments
 (0)