Skip to content

Commit

Permalink
reset the setting
Browse files Browse the repository at this point in the history
Signed-off-by: kkewwei <[email protected]>
  • Loading branch information
kkewwei committed Jul 26, 2024
1 parent 882fedd commit cadf593
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

import org.apache.hc.core5.http.ParseException;
import org.apache.hc.core5.http.io.entity.EntityUtils;
import org.junit.AfterClass;
import org.junit.BeforeClass;
import org.opensearch.client.Request;
import org.opensearch.client.Response;
Expand Down Expand Up @@ -51,5 +52,11 @@ public void testdoCatRequest() throws IOException, ParseException {
}
}

@AfterClass
@SuppressForbidden(reason = "Need to reset system property here after test")
public static void doResetAvailableProcessors() {
System.setProperty("opensearch.set.netty.runtime.available.processors", "false");
}

}

0 comments on commit cadf593

Please sign in to comment.