The following test modules have make_exp/1 function:
gdss-admin
test/eunit/brick_replace_rename_tests.erl
test/eqc/squorum_eqc_tests.erl
test/eqc/simple_eqc_tests.erl
gdss-ubf-proto
test/eunit/ubf_gdss_plugin_tests.erl
It first looked like make_exp/1 returns a key-value expiration time expiring in given milli-seconds. But I think it's creating expiration time that is 10^6 times bigger than the intended value.
NowX is in micro-seconds and a key-value expiration time is in milli-seconds. So (NowX * 1000) should read (NowX div 1000) to achieve micro to milli-seconds conversion.
Also, those eqc test models do not have conditions to handle expired key-values. They need to be added before make_exp/1 is corrected.
The following test modules have
make_exp/1
function:test/eunit/brick_replace_rename_tests.erl
test/eqc/squorum_eqc_tests.erl
test/eqc/simple_eqc_tests.erl
test/eunit/ubf_gdss_plugin_tests.erl
It first looked like
make_exp/1
returns a key-value expiration time expiring in given milli-seconds. But I think it's creating expiration time that is 10^6 times bigger than the intended value.NowX
is in micro-seconds and a key-value expiration time is in milli-seconds. So(NowX * 1000)
should read(NowX div 1000)
to achieve micro to milli-seconds conversion.Also, those eqc test models do not have conditions to handle expired key-values. They need to be added before
make_exp/1
is corrected.