test-blockjob-txn: don't abuse job->blk
commit7ac68e2920d32bd164862a6bb7931bfd167f4234
authorVladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Thu, 6 May 2021 14:13:54 +0000 (6 17:13 +0300)
committerVladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Tue, 28 Dec 2021 14:18:52 +0000 (28 15:18 +0100)
treed863be2fd130fa89e45676a939959e5d18f4b141
parentdf9a31650505278e72c6b453f1679f66eac6e633
test-blockjob-txn: don't abuse job->blk

Here we use job->blk to drop our own reference in job cleanup. Let's do
simpler: drop our reference immediately after job creation.

Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Reviewed-by: Nikita Lapshin <nikita.lapshin@virtuozzo.com>
tests/unit/test-blockjob-txn.c