forge
Explore
Log in

Don't you dare go Hollow

Use a private repo for the suspended-token clone

Browse files at this commit

67a464bebcfaa5ffbd5ab77c8d55fa81957cd453Ahmet Kaan GümüşParent: 5863bbd
  • test
    • use a private repo for the suspended-token clone
Show full message
✅ test: use a private repo for the suspended-token clone
crates/forge-web/tests/git_e2e.rsmodified+2 -2
@@ -585,7 +585,7 @@ async fn suspended_user_token_is_refused_over_http_git() {
585585 let (_server, ports) = launch(&dir, ports).await;
586586 let http = Http::new(ports.http);
587587
588- // Bob makes a token and a public repo of his own, and can push to it.
588+ // Bob makes a token and a private repo (a public one would still clone anonymously) of his own, and can push to it.
589589 let bob = login(&http, "bob", BOB_PW).await;
590590 let bob_token = create_token(&http, &bob, "suspend-token").await;
591591 let page = http.get_cookie("/new", &bob).await;
@@ -597,7 +597,7 @@ async fn suspended_user_token_is_refused_over_http_git() {
597597 ("csrf", &csrf),
598598 ("name", "bobrepo"),
599599 ("description", ""),
600- ("visibility", "public"),
600+ ("visibility", "private"),
601601 ("default_branch", "main"),
602602 ],
603603 Some(&bob),