diff --git a/fe/http_test.go b/fe/http_test.go
index 86558f5075fe0117f1deac1f5b2a97c2bd75ef40..50ca2098b441d8a342834023ac534dc1e9d251fd 100644
--- a/fe/http_test.go
+++ b/fe/http_test.go
@@ -166,6 +166,7 @@ func TestHTTPRedirector_Source(t *testing.T) {
 }
 
 func TestHTTPRedirector_Relay(t *testing.T) {
+	*proxyStreams = false
 	ctx := createTestHttpContext(t)
 	defer ctx.Close()
 
@@ -177,10 +178,6 @@ func TestHTTPRedirector_Relay(t *testing.T) {
 
 func TestHTTPRedirector_IcecastProxy(t *testing.T) {
 	*proxyStreams = true
-	defer func() {
-		*proxyStreams = false
-	}()
-
 	ctx := createTestHttpContext(t)
 	defer ctx.Close()