The context of the following conversation is Riley attained his end goal. He passed the tests he tried so hard on.:
Riley says I am so happy it's over..
The friend responds What is over?.
Riley responds I got my test results back and I passed all of them..
The friend responds That's great news.  Did you think you wouldn't pass?.
Riley responds Well, I wasn't doing so well in my classes but I studied so hard the past two weeks..
The friend responds Hard work pays off..