MilisPerSecDuration

This commit is contained in:
DarkGopher 2025-06-23 14:10:31 +02:00
parent 23b020ec9b
commit 4eeace28f9
4 changed files with 5 additions and 5 deletions

View file

@ -181,7 +181,7 @@ func (ts *TestServer) sessionGC(w http.ResponseWriter, r *http.Request) {
io.WriteString(w, err.Error())
return
}
time.Sleep(200 * time.Millisecond)
time.Sleep(200 * time.Millisecond * time.Duration(session.MilisPerSecDuration()))
if sm.Exists(ses.SessionID()) {
io.WriteString(w, fmt.Sprintf("Session id: %s must not exists in storage after GC",
ses.SessionID()))