fix(test) reduce test flakyness by actually waiting (#7540)
fix(test) reduce test flakyness by actually waiting (#7540)

because it used to use `ngx.time()` which only has second
precision, a time-out specified as 1 second could actually be
only 0.001, if that 1ms would cross the second boundary
Kong/kong,Kong/kong,Kong/kong