If you tighten the gas cap, the check engine light usually goes off after time. I think it's 20 cycles of the pressure test before it will, but I don't remember for sure. You can try disconnecting the battery as well, that might turn it off sooner for you. When was the last time you got gas? Usually if the gas cap is loose, the check engine light will come on pretty quick.