Adding timer to wait

Signed-off-by: Nimish Gupta <nimish@couchbase.com>