The three dogs raced in hopes of winning a treat.