tests: fix compilation warning

Signed-off-by: Loic Dachary <ldachary@redhat.com>
Merge pull request #2912 from dachary/wip-warning

tests: fix compilation warning

Reviewed-by: Jason Dillaman <dillaman@redhat.com>