From 4a3d9fcdfe22009ae2098bec72ba0243ac774613 Mon Sep 17 00:00:00 2001 From: Kegan Dougal <7190048+kegsay@users.noreply.github.com> Date: Fri, 1 Dec 2023 14:21:12 +0000 Subject: [PATCH] Try setting HTTP_PROXY --- tests/client_connectivity_test.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/client_connectivity_test.go b/tests/client_connectivity_test.go index 2f0640d..8113098 100644 --- a/tests/client_connectivity_test.go +++ b/tests/client_connectivity_test.go @@ -3,6 +3,7 @@ package tests import ( "fmt" "net/http" + "os" "os/exec" "testing" "time" @@ -37,6 +38,7 @@ func TestClientRetriesSendToDevice(t *testing.T) { var evID string var err error + os.Setenv("HTTP_PROXY", tc.Deployment.ControllerURL) // TODO FIXME // now gateway timeout the /sendToDevice endpoint tc.Deployment.WithMITMOptions(t, map[string]interface{}{ "statuscode": map[string]interface{}{ @@ -44,6 +46,9 @@ func TestClientRetriesSendToDevice(t *testing.T) { "filter": "~u .*\\/sendToDevice.*", }, }, func() { + t.Logf("LOCKED") + return + evID, err = alice.TrySendMessage(t, roomID, wantMsgBody) if err != nil { // we allow clients to fail the send if they cannot call /sendToDevice @@ -53,6 +58,8 @@ func TestClientRetriesSendToDevice(t *testing.T) { t.Logf("TrySendMessage: => %s", evID) } }) + os.Unsetenv("HTTP_PROXY") + return if err != nil { // retry now we have connectivity