You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 04755c5
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: extras/push-notification-config-store-database-jpa/src/test/java/io/a2a/extras/pushnotificationconfigstore/database/jpa/JpaDatabasePushNotificationConfigStoreIntegrationTest.java
+18-12Lines changed: 18 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -151,11 +151,12 @@ public void testJpaDatabasePushNotificationConfigStoreIntegration() throws Excep
151
151
assertTrue(updateLatch.await(10, TimeUnit.SECONDS), "Timeout waiting for task update");
152
152
153
153
// Step 5: Poll for the async notification to be captured
154
+
// With the new StreamingEventKind support, we receive all event types (Task, Message, TaskArtifactUpdateEvent, etc.)
154
155
longend = System.currentTimeMillis() + 5000;
155
156
booleannotificationReceived = false;
156
157
157
158
while (System.currentTimeMillis() < end) {
158
-
if (!mockPushNotificationSender.getCapturedTasks().isEmpty()) {
159
+
if (!mockPushNotificationSender.getCapturedEvents().isEmpty()) {
159
160
notificationReceived = true;
160
161
break;
161
162
}
@@ -165,17 +166,22 @@ public void testJpaDatabasePushNotificationConfigStoreIntegration() throws Excep
165
166
assertTrue(notificationReceived, "Timeout waiting for push notification.");
Copy file name to clipboardExpand all lines: extras/push-notification-config-store-database-jpa/src/test/java/io/a2a/extras/pushnotificationconfigstore/database/jpa/MockPushNotificationSender.java
0 commit comments