Fix platform.discovery tests
2 files changed