Sign in again to the hub last signed in to
CI / build (push) Successful in 30s

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
dhkatzandClaude Opus 5.5 committed 2026-10-29 19:25:47 -07:00
1 parent 5eca0b57a6
commit 400831bf3c
2 files changed
+13 -1

No files matched your search

+5
View File
@@ -109,6 +109,11 @@ func TestSignInAndOut(t *testing.T) {
if _, err := os.Stat(path); !os.IsNotExist(err) {
t.Fatalf("hub.json: %v", err)
}
// Signing in again goes to the same hub.
m.DefaultHub = "https://elsewhere.test"
if s := ask(t, m, "GET", "/hub", ""); s.Hub != srv.URL {
t.Fatalf("hub after signing out: %q", s.Hub)
}
// Only https hubs (or this computer's); other requests to the proxy's address are refused.
u, _ := url.Parse("http://" + Host + "/hub/signin")