From a3f3a79f75affeb1935bc4e4b7bf9fc2c7017947 Mon Sep 17 00:00:00 2001 From: Adam Rutkowski Date: Wed, 2 Oct 2019 15:57:10 -0400 Subject: [PATCH] unit test: extend hash bucket locking test Signed-off-by: Adam Rutkowski --- .../ocf_metadata_concurrency.c/ocf_metadata_concurrency.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/unit/tests/concurrency/ocf_metadata_concurrency.c/ocf_metadata_concurrency.c b/tests/unit/tests/concurrency/ocf_metadata_concurrency.c/ocf_metadata_concurrency.c index 23096f3..5ee8b14 100644 --- a/tests/unit/tests/concurrency/ocf_metadata_concurrency.c/ocf_metadata_concurrency.c +++ b/tests/unit/tests/concurrency/ocf_metadata_concurrency.c/ocf_metadata_concurrency.c @@ -97,7 +97,11 @@ static void ocf_req_hash_lock_rd_test01(void **state) .hash = {.val = {0, 1, 2, 3, 4, 0, 1}, .count = 7}, .expected_call = {.val = {0, 1, 2, 3, 4}, .count = 5} }, - }; + { + .hash = {.val = {1, 2, 3, 4, 0, 1}, .count = 6}, + .expected_call = {.val = {0, 1, 2, 3, 4}, .count = 5} + }, +}; const unsigned test_case_count = sizeof(test_cases) / sizeof(test_cases[0]); unsigned i;