bastion 0.55.3
ci / personal-data (push) Successful in 5s
ci / test (push) Successful in 3m51s
ci / fuzz (push) Successful in 2m55s

This commit is contained in:
Privatae
2026-10-25 23:16:45 +00:00
parent 77b7853ae1
commit 8822d5df85
136 changed files with 8638 additions and 1641 deletions
+4 -1
View File
@@ -11,6 +11,7 @@ package main
// go test -c -o /tmp/b.test . && BASTION_MIRROR_E2E=1 /tmp/b.test -test.run TestMirrorEndToEnd -test.v
import (
"context"
"crypto/ed25519"
"encoding/base64"
"encoding/json"
@@ -89,7 +90,9 @@ func TestMirrorEndToEnd(t *testing.T) {
}
// Read the server's own view over its socket: both repos exist, with commits.
hc := &http.Client{Transport: &http.Transport{Dial: func(_, _ string) (net.Conn, error) { return net.Dial("unix", sock) }}}
hc := &http.Client{Transport: &http.Transport{DialContext: func(ctx context.Context, _, _ string) (net.Conn, error) {
return (&net.Dialer{}).DialContext(ctx, "unix", sock)
}}}
// Gitea indexes a pushed repo in a background queue, so poll for a moment.
for _, repo := range []string{"rig/nocode", "rig/example"} {
var last string