In the book "Grammaire en dialogues. Niveau intermédiaire" by Claire Miquel, chapter 12, there's a dialogue which starts:
Benjamin : Quand est-ce que j'aurai une moto?
Le père : Je te l'ai déjà dit : quand tu auras passé ton bac.
Benjamin : « Quand j'aurai passé mon bac », c'est dans longtemps ! C'est dans six mois !
From my point of view, there's no much sense to promise anything for taking (being at) an exam instead of succeeding it. Could you please clarify this?