The pastry cream will be a thick custard consistency when cooked. It should coat the back of a wooden spoon and hold its shape when you draw a line through it. Once at that stage, turn off the heat and add the chocolate.