stabilized and improve pendingquerybuf test suit (#8780)
stabilized and improve pendingquerybuf test suit (#8780)

replace the hardcoded after 2000, with waiting for the sync and
wait for condition
JackieXie168/redis,JackieXie168/redis,JackieXie168/redis,JackieXie168/redis