Read the passage.

Jeremy spent all weekend cramming for a test on time management. When he got to school, he realized the test wasn’t until the following week.

Which literary device did the author use in the passage?