Make the overload test a bit more precise

We should get exactly 200 get requests in this part of the test, so
let's verify that instead of using the fuzzier >= comparison.
This commit is contained in:
Nick Marino 2016-09-20 15:53:32 -04:00
parent 2d4e2b59ff
commit 3ba8623975

View File

@ -136,8 +136,8 @@ test_no_overload_protection(Nodes, BKV) ->
lager:info("Testing with no overload protection"),
ProcFun = build_predicate_eq(test_no_overload_protection, ?NUM_REQUESTS,
"ProcFun", "Procs"),
QueueFun = build_predicate_gte(test_no_overload_protection, ?NUM_REQUESTS,
"QueueFun", "Queue Size"),
QueueFun = build_predicate_eq(test_no_overload_protection, ?NUM_REQUESTS,
"QueueFun", "Queue Size"),
verify_test_results(run_test(Nodes, BKV), BKV, ProcFun, QueueFun).
verify_test_results({_NumProcs, QueueLen}, {?CONSISTENT_BUCKET, _, _}, _ProcFun, QueueFun) ->