Skip to content

Commit

Permalink
Back out all debug logging
Browse files Browse the repository at this point in the history
  • Loading branch information
kegsay committed Dec 1, 2023
1 parent 90c7417 commit bcbdebe
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ jobs:
export LD_LIBRARY_PATH="$(pwd)/rust-sdk/target/debug"
env
set -o pipefail &&
go test -v -json -timeout 5m -run '^TestClientRetriesSendToDevice$' ./tests | gotestfmt
go test -v -json -timeout 15m ./tests | gotestfmt
shell: bash # required for pipefail to be A Thing. pipefail is required to stop gotestfmt swallowing non-zero exit codes
name: Run Complement Crypto Tests
env:
Expand Down
1 change: 0 additions & 1 deletion internal/deploy/deploy.go
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,6 @@ func RunNewDeployment(t *testing.T, shouldTCPDump bool) *SlidingSyncDeployment {
controllerURL = strings.Replace(controllerURL, "localhost", "127.0.0.1", 1)
proxyURL, err := url.Parse(controllerURL)
must.NotError(t, "failed to parse controller URL", err)
t.Logf("mitm proxy url => %s", proxyURL.String())
return &SlidingSyncDeployment{
Deployment: deployment,
slidingSync: ssContainer,
Expand Down
2 changes: 1 addition & 1 deletion tests/addons/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@
StatusCode(),
]
# testcontainers will look for this log line
print("loading complement crypto addons", flush=True)
print("loading complement crypto addons", flush=True)
7 changes: 0 additions & 7 deletions tests/client_connectivity_test.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
package tests

import (
"fmt"
"net/http"
"os/exec"
"testing"
"time"

Expand All @@ -14,11 +12,6 @@ import (
func TestClientRetriesSendToDevice(t *testing.T) {
ClientTypeMatrix(t, func(t *testing.T, clientTypeA, clientTypeB api.ClientType) {
tc := CreateTestContext(t, clientTypeA, clientTypeB)
t.Logf("checking mitm")
cmd := exec.Command("curl", "-v", "-X", "POST", "-d", "{}", "-x", tc.Deployment.ControllerURL, "http://mitm.code/options/unlock")
output, cerr := cmd.CombinedOutput()
fmt.Println(cerr)
fmt.Println(string(output))
roomID := tc.CreateNewEncryptedRoom(t, tc.Alice, "public_chat", nil)
tc.Bob.MustJoinRoom(t, roomID, []string{clientTypeA.HS})
alice := tc.MustLoginClient(t, tc.Alice, clientTypeA)
Expand Down

0 comments on commit bcbdebe

Please sign in to comment.