Skip to content

Commit 316702e

Browse files
Update InMemorySessionServiceTest.java
1 parent d02d25c commit 316702e

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

core/src/test/java/com/google/adk/sessions/InMemorySessionServiceTest.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,9 @@ public void deleteSession_cleansUpEmptyParentMaps() throws Exception {
274274

275275
Session session = sessionService.createSession("app-name", "user-id").blockingGet();
276276

277-
sessionService.deleteSession(session.appName(), session.userId(), session.id()).blockingAwait();
277+
sessionService
278+
.deleteSession(session1.appName(), session1.userId(), session1.id())
279+
.blockingAwait();
278280

279281
// Use reflection to access the private 'sessions' field
280282
Field field = InMemorySessionService.class.getDeclaredField("sessions");
@@ -308,7 +310,8 @@ public void deleteSession_doesNotRemoveUserMapWhenOtherSessionsExist() throws Ex
308310
field.setAccessible(true);
309311
@SuppressWarnings("unchecked")
310312
ConcurrentMap<String, ConcurrentMap<String, ConcurrentMap<String, ?>>> sessions =
311-
(ConcurrentMap<String, ConcurrentMap<String, ConcurrentMap<String, ?>>>) field.get(sessionService);
313+
(ConcurrentMap<String, ConcurrentMap<String, ConcurrentMap<String, ?>>>)
314+
field.get(sessionService);
312315

313316
assertThat(sessions.get("app-name")).isNotNull();
314317
assertThat(sessions.get("app-name").get("user-id")).isNotNull();

0 commit comments

Comments
 (0)