Skip to content

Commit b3f2e60

Browse files
committed
NC | lifecycle - modify test lock_check times
Signed-off-by: nadav mizrahi <nadav.mizrahi16@gmail.com>
1 parent 5d4129c commit b3f2e60

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/test/unit_tests/nc/lifecycle/test_nc_lifecycle_posix_integration.test.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,8 @@ describe('noobaa nc - lifecycle - lock check', () => {
115115
const lifecyle_run_date = new Date();
116116
lifecyle_run_date.setMinutes(lifecyle_run_date.getMinutes() - 1);
117117
await config_fs.create_config_json_file(JSON.stringify({
118-
NC_LIFECYCLE_RUN_TIME: date_to_run_time_format(lifecyle_run_date)
118+
NC_LIFECYCLE_RUN_TIME: date_to_run_time_format(lifecyle_run_date),
119+
NC_LIFECYCLE_RUN_DELAY_LIMIT_MINS: 5
119120
}));
120121
const res = await exec_manage_cli(TYPES.LIFECYCLE, '', { disable_service_validation: 'true', config_root }, undefined, undefined);
121122
await config_fs.delete_config_json_file();
@@ -124,9 +125,9 @@ describe('noobaa nc - lifecycle - lock check', () => {
124125
expect(parsed_res.message).toBe(ManageCLIResponse.LifecycleSuccessful.message);
125126
});
126127

127-
it('nc lifecycle - change run time to 1 minute in the future - should fail ', async () => {
128+
it('nc lifecycle - change run time to 10 minute in the future - should fail ', async () => {
128129
const lifecyle_run_date = new Date();
129-
lifecyle_run_date.setMinutes(lifecyle_run_date.getMinutes() + 1);
130+
lifecyle_run_date.setMinutes(lifecyle_run_date.getMinutes() + 10);
130131
await config_fs.create_config_json_file(JSON.stringify({
131132
NC_LIFECYCLE_RUN_TIME: date_to_run_time_format(lifecyle_run_date)
132133
}));

0 commit comments

Comments
 (0)