Cleanup, signing and update of internals.

This commit is contained in:
2025-12-15 00:32:53 +00:00
parent 2d9c28657b
commit 100251b896
19 changed files with 439 additions and 313 deletions
+2 -2
View File
@@ -68,7 +68,7 @@ func TestRateLimiter_Cleanup(t *testing.T) {
rl.Allow(pid)
}
assert.Len(t, rl.requests, 5)
assert.Len(t, rl.buckets, 5)
// Wait for expiration
time.Sleep(15 * time.Millisecond)
@@ -76,7 +76,7 @@ func TestRateLimiter_Cleanup(t *testing.T) {
// Cleanup
rl.Cleanup()
assert.Empty(t, rl.requests)
assert.Empty(t, rl.buckets)
}
func TestAuditLogger_Log(t *testing.T) {