I was taking a test in class.
I eventually fell asleep on accident until class was over.
I didn't get enough sleep last night so I started staying awake.
I didn't get enough sleep last night so I started falling asleep.