As I always say, candy-making is a science. Test your thermometer in boiling water to ensure it reads 100°C or 212°F (if you live at altitude, you may need to adjust for local conditions). If the mixture reaches 140°C / 285°F (it will continue cooking a little while you beat the egg whites) and you have followed the recipe correctly, then it should set.