mirror of
https://github.com/juanfont/headscale.git
synced 2025-11-09 21:49:39 -05:00
integration: replace time.Sleep with assert.EventuallyWithT (#2680)
This commit is contained in:
@@ -32,7 +32,7 @@ const (
|
||||
reservedResponseHeaderSize = 4
|
||||
)
|
||||
|
||||
// httpError logs an error and sends an HTTP error response with the given
|
||||
// httpError logs an error and sends an HTTP error response with the given.
|
||||
func httpError(w http.ResponseWriter, err error) {
|
||||
var herr HTTPError
|
||||
if errors.As(err, &herr) {
|
||||
@@ -102,6 +102,7 @@ func (h *Headscale) handleVerifyRequest(
|
||||
resp := &tailcfg.DERPAdmitClientResponse{
|
||||
Allow: nodes.ContainsNodeKey(derpAdmitClientRequest.NodePublic),
|
||||
}
|
||||
|
||||
return json.NewEncoder(writer).Encode(resp)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user