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

This commit is contained in:
Lunny Xiao authored and GitHub committed 2022-12-22 21:09:35 +08:00
1 parent ac5b44b2f4
commit 8c1bb77437
2 files changed
+2 -11

No files matched your search

-3
View File
@@ -21,7 +21,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")
}