Skip to content

Commit d8ece80

Browse files
committed
test revert
1 parent 4963cae commit d8ece80

File tree

1 file changed

+4
-9
lines changed
  • binding/android/PicoLLMTestApp/picollm-test-app/src/androidTest/java/ai/picovoice/picollm/testapp

1 file changed

+4
-9
lines changed

binding/android/PicoLLMTestApp/picollm-test-app/src/androidTest/java/ai/picovoice/picollm/testapp/PicoLLMTest.java

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -528,15 +528,10 @@ public void testInterrupt() throws Exception {
528528
Future<PicoLLMCompletion> resFuture = executor.submit(() ->
529529
picollm.generate(
530530
currentTestData.get("prompt").getAsString(),
531-
new PicoLLMGenerateParams.Builder()
532-
.setStreamCallback(completion -> {
533-
//try {
534-
//picollm.interrupt();
535-
//} catch (PicoLLMException e) {
536-
//fail("Interrupt should not fail.");
537-
//}
538-
})
539-
.build()));
531+
new PicoLLMGenerateParams.Builder().build()));
532+
533+
Thread.sleep(500);
534+
picollm.interrupt();
540535

541536
PicoLLMCompletion res = resFuture.get();
542537

0 commit comments

Comments
 (0)