--- a/test/test_main.cpp
+++ b/test/test_main.cpp
@@ -241,9 +241,9 @@
 
 TEST_CASE("Uri")
 {
-    StreamUri uri("pipe:///tmp/snapfifo?name=default&codec=flac");
+    StreamUri uri("pipe://@TERMUX_PREFIX@/tmp/snapfifo?name=default&codec=flac");
     REQUIRE(uri.scheme == "pipe");
-    REQUIRE(uri.path == "/tmp/snapfifo");
+    REQUIRE(uri.path == "@TERMUX_PREFIX@/tmp/snapfifo");
     REQUIRE(uri.host.empty());
 
     uri = StreamUri("wss://user:pass@localhost:1788");
