Skip to content

Commit cb7d9f9

Browse files
committed
reduntant test
1 parent 66d27e6 commit cb7d9f9

File tree

1 file changed

+0
-22
lines changed

1 file changed

+0
-22
lines changed

plugins/core/jetbrains-community/tst/software/aws/toolkits/jetbrains/core/notifications/NotificationDismissalStateTest.kt

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -80,26 +80,4 @@ class NotificationDismissalStateTest {
8080

8181
assertTrue(state.isDismissed("new-notification"))
8282
}
83-
84-
@Test
85-
fun `clean up happens on load state`() {
86-
val oldNotification = DismissedNotification(
87-
id = "old-notification",
88-
dismissedAt = Instant.now().minus(61, ChronoUnit.DAYS).toEpochMilli().toString()
89-
)
90-
val recentNotification = DismissedNotification(
91-
id = "recent-notification",
92-
dismissedAt = Instant.now().toEpochMilli().toString()
93-
)
94-
95-
state.loadState(
96-
NotificationDismissalConfiguration(
97-
mutableSetOf(oldNotification, recentNotification)
98-
)
99-
)
100-
101-
val persistedState = state.getState()
102-
assertEquals(1, persistedState.dismissedNotifications.size)
103-
assertTrue(persistedState.dismissedNotifications.any { it.id == "recent-notification" })
104-
}
10583
}

0 commit comments

Comments
 (0)