Fix expected-related OS X build failure
Summary:
I couldn't manage to build the project on my OS X machine, so the fix currently hasn't been tested.
Should fix T8185
Test Plan: Ask Christian Mollekopf to test the fix on his OS X machine
Reviewers: cmollekopf
Tags: Kube
Maniphest Tasks: T8185
Differential Revision: https://phabricator.kde.org/D11265