Remove test session cache to reduce possible concurrent problem (#22199) (#22429)

backport #22199
This commit is contained in:
Lunny Xiao 2023-01-14 02:54:58 +08:00 committed by GitHub
parent 421d87933b
commit 37e23c982f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 11 deletions

View file

@ -22,7 +22,4 @@ func TestSignOut(t *testing.T) {
// try to view a private repo, should fail
req = NewRequest(t, "GET", "/user2/repo2")
session.MakeRequest(t, req, http.StatusNotFound)
// invalidate cached cookies for user2, for subsequent tests
delete(loginSessionCache, "user2")
}