Leveling up at full health doesn't increase current HP
If you gain a level when at full health, your current HP does not increase: it stays at your old maximum HP. If you are not at full health when you level up you do immediately gain some current HP.