tests: logging: Fix wrong buf_check() parameter
After adding checking results from buf_check() fix also parameter. Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
This commit is contained in:
parent
2ea492e4a9
commit
5608a80dea
1 changed files with 2 additions and 2 deletions
|
@ -139,7 +139,7 @@ ZTEST(test_log_cache, test_log_cache_basic)
|
|||
|
||||
/* id0 is evicted since it is the oldest one. */
|
||||
cache_get(&cache, id0.raw, &buf, false, __LINE__);
|
||||
zassert_true(buf_check(buf, 1), "Buffer check failed");
|
||||
zassert_true(buf_check(buf, 2), "Buffer check failed");
|
||||
log_cache_put(&cache, buf);
|
||||
|
||||
/* And id0 is now in cache */
|
||||
|
@ -147,7 +147,7 @@ ZTEST(test_log_cache, test_log_cache_basic)
|
|||
|
||||
/* buf id1 got evicted */
|
||||
cache_get(&cache, id1.raw, &buf, false, __LINE__);
|
||||
zassert_true(buf_check(buf, 2), "Buffer check failed");
|
||||
zassert_true(buf_check(buf, 3), "Buffer check failed");
|
||||
log_cache_put(&cache, buf);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue