tests: Fix unused variable warning in non-p2p case
tests: Fix unused variable warning in non-p2p case

Closes: #1575
Approved by: alexlarsson

matthiasclasen/flatpak,flatpak/flatpak,matthiasclasen/flatpak,flatpak/flatpak,flatpak/flatpak,matthiasclasen/flatpak,matthiasclasen/flatpak,flatpak/flatpak,flatpak/flatpak,matthiasclasen/flatpak