Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
ksyeo1010 committed Aug 17, 2023
1 parent ffb875e commit 1700fd9
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
5 changes: 4 additions & 1 deletion binding/android/EagleTestApp/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,7 @@
release
test_resources
*.pv
*.wav
*.wav

*.jks
!.dummy.jks
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,6 @@

# If you keep the line number information, uncomment this to
# hide the original source file name.
#-renamesourcefileattribute SourceFile
#-renamesourcefileattribute SourceFile
-keep class com.google.** { *; }
-keep class com.microsoft.** { *; }
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ public void TearDown() {
}

@Test
public void testOctopus() {
public void testEagle() {
onView(withId(R.id.testButton)).perform(click());
onView(withId(R.id.testResult)).perform(waitForText("Passed", 60000));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ public void runTest() {
results.add(result);
}

result = new TestResult();
result.testName = "Test Enroll Speaker";
EagleProfile profile = null;
try {
Expand Down Expand Up @@ -222,7 +223,7 @@ private EagleProfile enrollTestSpeaker(EagleProfiler e, String audioPath) throws
extractFile(audioPath);
}

short[] pcm = readAudioFile(audioPath);
short[] pcm = readAudioFile(testAudio.getAbsolutePath());
e.enroll(pcm);

return e.export();
Expand Down

0 comments on commit 1700fd9

Please sign in to comment.