Skip to content

Commit

Permalink
forgot to fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
0t4u committed Dec 2, 2023
1 parent 65f9d7a commit fef6ca1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ratelimit.zig
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ test "ratelimiter" {
const testing = std.testing;

var limiter = Ratelimiter.init();
try testing.expect(limiter.refresh_time == time.timestamp() + max_req_amount);
try testing.expect(limiter.refresh_time == time.timestamp() + wait_time);

const amt = try limiter.remove();
try testing.expect(amt == max_req_amount - 1);
Expand Down

0 comments on commit fef6ca1

Please sign in to comment.