Skip to content

Commit 19f641b

Browse files
committed
fix broken test
1 parent 365a219 commit 19f641b

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

football/src/test/scala/com/gu/mobile/notifications/football/lib/EventConsumerSpec.scala

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,9 @@ class EventConsumerSpec(implicit ev: ExecutionEnv)
349349
val result: List[NotificationPayload] =
350350
eventConsumer.eventsToNotifications(matchDataLA)
351351

352-
result must not contain((payload: NotificationPayload) => payload.title.getOrElse("") == "Penalty Kick")
352+
result must not contain((payload: NotificationPayload) =>
353+
payload.isInstanceOf[FootballMatchStatusPayload] && payload.title.contains("Penalty Kick")
354+
)
353355
}
354356

355357
"generate FootballPenaltyShootoutPayload for shootout events" in new MatchEventsContext {

0 commit comments

Comments
 (0)