tests.synctest: Fix storing values to void function

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>