Huddersfield improved on Saturday's 2-1 defeat at Chesterfield with a 1-1 draw at York City in their second pre-season friendly of the summer.