Skip to content

Commit 8ba55a8

Browse files
authored
notification - nc test - don't assume test vm has enough fs free (#9292)
Signed-off-by: Amit Prinz Setter <alphaprinz@gmail.com>
1 parent 418bb3b commit 8ba55a8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/test/integration_tests/nc/cli/test_nc_health.js

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

249-
assert.strictEqual(health_status.checks.notif_storage_threshold_details.result, 'above threshold');
249+
console.log("PSA fs stats =", fs.statfsSync(config.NOTIFICATION_LOG_DIR));
250+
251+
assert(health_status.checks.notif_storage_threshold_details.result.indexOf(' threshold') > -1);
250252
assert.strictEqual(health_status.checks.notif_storage_threshold_details.threshold, config.NOTIFICATION_SPACE_CHECK_THRESHOLD);
251253
});
252254

0 commit comments

Comments
 (0)