Skip to content

Commit f81d96f

Browse files
committed
test fix
1 parent f04da83 commit f81d96f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ class NotificationPollingServiceTest {
6161

6262
@Test
6363
fun `test pollForNotifications when ETag matches - no new notifications`() {
64-
ETagState.getState().etag = "same"
64+
NotificationEtagState.getInstance().etag = "same"
6565
val firstPollField = NotificationPollingService::class.java
6666
.getDeclaredField("firstPollDone")
6767
.apply { isAccessible = true }
@@ -80,7 +80,7 @@ class NotificationPollingServiceTest {
8080

8181
@Test
8282
fun `test pollForNotifications when ETag matches on startup - notify observers`() {
83-
ETagState.getState().etag = "same"
83+
NotificationEtagState.getInstance().etag = "same"
8484
mockkStatic(HttpRequests::class) {
8585
every {
8686
HttpRequests.request(any<String>())
@@ -94,7 +94,7 @@ class NotificationPollingServiceTest {
9494

9595
@Test
9696
fun `test pollForNotifications when ETag different - notify observers`() {
97-
ETagState.getState().etag = "oldETag"
97+
NotificationEtagState.getInstance().etag = "oldETag"
9898
mockkStatic(HttpRequests::class) {
9999
every {
100100
HttpRequests.request(any<String>())

0 commit comments

Comments
 (0)