mirror of
https://github.com/gryf/coach.git
synced 2025-12-17 19:20:19 +01:00
tests: minor fix for functional tests (#289)
* tests: minor fix for functional tests * tests: fix value
This commit is contained in:
@@ -91,7 +91,7 @@ def test_restore_checkpoint(preset_args, clres, framework,
|
||||
return p
|
||||
|
||||
if framework == "mxnet":
|
||||
preset_args = Def.Presets.mxnet_args_test
|
||||
preset_args = Def.Presets.mxnet_args_test[0]
|
||||
|
||||
p_valid_params = p_utils.validation_params(preset_args)
|
||||
create_cp_proc = _create_cmd_and_run(flag=['--checkpoint_save_secs', '5'])
|
||||
|
||||
@@ -395,6 +395,10 @@ def validate_arg_result(flag, p_valid_params, clres=None, process=None,
|
||||
results.append(last_step[-1])
|
||||
time.sleep(1)
|
||||
|
||||
# get the first value after heat-up
|
||||
time.sleep(1)
|
||||
results.append(csv["Total steps"].values[-1])
|
||||
|
||||
assert int(results[-1]) >= Def.Consts.num_hs, \
|
||||
Def.Consts.ASSERT_MSG.format("bigger than " +
|
||||
str(Def.Consts.num_hs), results[-1])
|
||||
|
||||
Reference in New Issue
Block a user