Skip to content

Commit

Permalink
Revert "Try setting HTTP_PROXY"
Browse files Browse the repository at this point in the history
This reverts commit 4a3d9fc.
  • Loading branch information
kegsay committed Dec 1, 2023
1 parent 4a3d9fc commit 408267a
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions tests/client_connectivity_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package tests
import (
"fmt"
"net/http"
"os"
"os/exec"
"testing"
"time"
Expand Down Expand Up @@ -38,17 +37,13 @@ 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{}{
"return_status": http.StatusGatewayTimeout,
"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
Expand All @@ -58,8 +53,6 @@ func TestClientRetriesSendToDevice(t *testing.T) {
t.Logf("TrySendMessage: => %s", evID)
}
})
os.Unsetenv("HTTP_PROXY")
return

if err != nil {
// retry now we have connectivity
Expand Down

0 comments on commit 408267a

Please sign in to comment.