Skip to content

Commit 6e5552c

Browse files
committed
Adjust the warning printed when Complement receives unexpected requests
Mention the possibility of the HS backing off, which should help serve as a hint if a test author is debugging a flakey test which is timing out.
1 parent 01e1de0 commit 6e5552c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/federation/server.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ func NewServer(t *testing.T, deployment *docker.Deployment, opts ...func(*Server
9898
body, _ := ioutil.ReadAll(req.Body)
9999
t.Errorf("Server.UnexpectedRequestsAreErrors=true received unexpected request to server: %s %s\n%s", req.Method, req.URL.Path, string(body))
100100
} else {
101-
t.Logf("Server.UnexpectedRequestsAreErrors=false received unexpected request to server: %s %s", req.Method, req.URL.Path)
101+
t.Logf("Server.UnexpectedRequestsAreErrors=false received unexpected request to server: %s %s - sending 404 which may cause the HS to backoff from Complement", req.Method, req.URL.Path)
102102
}
103103
w.WriteHeader(404)
104104
w.Write([]byte("complement: federation server is not listening for this path"))

0 commit comments

Comments
 (0)