Skip to content

Commit 46ee496

Browse files
committed
test(speech-to-text): Fix failing unit tests
1 parent d4b7347 commit 46ee496

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

speech-to-text/src/test/java/com/ibm/watson/developer_cloud/speech_to_text/v1/SpeechToTextTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ public void testRecognizeWithCustomization() throws FileNotFoundException, Inter
334334
final RecordedRequest request = server.takeRequest();
335335

336336
assertEquals("POST", request.getMethod());
337-
assertEquals(PATH_RECOGNIZE + "?customization_id=" + id + "&version=" + version, request.getPath());
337+
assertEquals(PATH_RECOGNIZE + "?customization_id=" + id + "&base_model_version=" + version, request.getPath());
338338
assertEquals(recognition, GSON.toJsonTree(result));
339339
}
340340

@@ -364,7 +364,7 @@ public void testRecognizeWithAcousticCustomization() throws FileNotFoundExceptio
364364
final RecordedRequest request = server.takeRequest();
365365

366366
assertEquals("POST", request.getMethod());
367-
assertEquals(PATH_RECOGNIZE + "?acoustic_customization_id=" + id + "&version=" + version,
367+
assertEquals(PATH_RECOGNIZE + "?acoustic_customization_id=" + id + "&base_model_version=" + version,
368368
request.getPath());
369369
assertEquals(recognition, GSON.toJsonTree(result));
370370
}
@@ -470,8 +470,8 @@ public void testCreateJob() throws InterruptedException, FileNotFoundException {
470470
+ "&user_token=" + userToken
471471
+ "&results_ttl=" + resultsTtl
472472
+ "&customization_id=" + customizationId
473+
+ "&base_model_version=" + version
473474
+ "&customization_weight=" + customizationWeight
474-
+ "&version=" + version
475475
+ "&inactivity_timeout=" + inactivityTimeout
476476
+ "&keywords=" + StringUtils.join(keywords, ',')
477477
+ "&keywords_threshold=" + keywordsThreshold

0 commit comments

Comments
 (0)