Skip to content

Commit dced261

Browse files
committed
Fix
1 parent ba65cfb commit dced261

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

llm/android/LlamaDemo/app/src/androidTest/java/com/example/executorchllamademo/UIWorkflowTest.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -409,16 +409,16 @@ class UIWorkflowTest {
409409
Log.i(TAG, "Stop button not found - generation may have completed")
410410
}
411411

412+
// Give state time to fully synchronize
413+
Thread.sleep(500)
414+
412415
// Click stop
413416
composeTestRule.onNodeWithContentDescription("Stop").performClick()
414-
Log.i(TAG, "111")
415417

416418
composeTestRule.waitForIdle()
417-
Log.i(TAG, "222")
418419

419420
// Wait for generation to fully stop
420421
waitForGenerationComplete(30000)
421-
Log.i(TAG, "333")
422422

423423
// Verify that some response was generated (even if stopped early)
424424
assertModelResponseNotEmpty()

llm/android/LlamaDemo/app/src/main/java/com/example/executorchllamademo/ui/viewmodel/ChatViewModel.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -436,6 +436,7 @@ class ChatViewModel(application: Application) : AndroidViewModel(application), L
436436
}
437437

438438
fun stopGeneration() {
439+
Log.i("ChatViewModel", "stopGeneration called")
439440
module?.stop()
440441
}
441442

0 commit comments

Comments
 (0)