Commit c4b25ef
authored
Fix: Increase Cohere integration test timeout to 120s (#4767)
Cohere integration tests are failing in CI with "Read timed out" errors.
The Cohere connector was using default timeout (30s) which is insufficient
for CI environment where API calls can take 60-90+ seconds.
Changes:
- Add client_config to Cohere connector with 120s connection_timeout and read_timeout
- Add service reachability check for api.cohere.ai to gracefully skip tests when service is unavailable
Fixes flaky test failures in:
- testBM25WithCohere
- testBM25WithCohereUsingLlmResponseField
Signed-off-by: rithin-pullela-aws <rithinp@amazon.com>1 parent 870a57c commit c4b25ef
File tree
1 file changed
+9
-4
lines changed- plugin/src/test/java/org/opensearch/ml/rest
1 file changed
+9
-4
lines changedLines changed: 9 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
255 | 255 | | |
256 | 256 | | |
257 | 257 | | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
258 | 263 | | |
259 | 264 | | |
260 | 265 | | |
| |||
1079 | 1084 | | |
1080 | 1085 | | |
1081 | 1086 | | |
1082 | | - | |
1083 | | - | |
| 1087 | + | |
| 1088 | + | |
1084 | 1089 | | |
1085 | 1090 | | |
1086 | 1091 | | |
| |||
1131 | 1136 | | |
1132 | 1137 | | |
1133 | 1138 | | |
1134 | | - | |
1135 | | - | |
| 1139 | + | |
| 1140 | + | |
1136 | 1141 | | |
1137 | 1142 | | |
1138 | 1143 | | |
| |||
0 commit comments