Skip to content

Commit

Permalink
Fixing the locale changes from locale.default to locale.ROOT to fix t…
Browse files Browse the repository at this point in the history
…he tests failing on windows. (opensearch-project#44)

Signed-off-by: Navneet Verma <[email protected]>
  • Loading branch information
navneet1v authored Oct 29, 2022
1 parent d404336 commit b7ad60d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@

public abstract class BaseNeuralSearchIT extends OpenSearchRestTestCase {

private static final Locale LOCALE = Locale.getDefault();
private static final Locale LOCALE = Locale.ROOT;

private static final int MAX_TASK_RESULT_QUERY_TIME_IN_SECOND = 60 * 5;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ private String uploadTextEmbeddingModel() throws Exception {
Path path = Path.of(testClusterPath + "/all-MiniLM-L6-v2.zip");
Files.copy(Path.of(classLoader.getResource("model/all-MiniLM-L6-v2.zip").toURI()), path);
String requestBody = Files.readString(Path.of(classLoader.getResource("processor/UploadModelRequestBody.json").toURI()));
String request = String.format(Locale.getDefault(), requestBody, path);
String request = String.format(Locale.ROOT, requestBody, path);
return uploadModel(request);
}

Expand Down

0 comments on commit b7ad60d

Please sign in to comment.