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