Skip to content

Commit

Permalink
Fix test case
Browse files Browse the repository at this point in the history
Signed-off-by: Gagan Juneja <[email protected]>
  • Loading branch information
Gagan Juneja committed Sep 8, 2023
1 parent c1ec431 commit 518b39f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,11 @@
@OpenSearchIntegTestCase.SuiteScopeTestCase
public class IpRangeIT extends OpenSearchIntegTestCase {

@Override
protected boolean addMockTelemetryPlugin() {
return true;
}

public static class DummyScriptPlugin extends MockScriptPlugin {
@Override
public Map<String, Function<Map<String, Object>, Object>> pluginScripts() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2328,6 +2328,7 @@ private static void initializeSuiteScope() throws Exception {
INSTANCE.beforeInternal();
INSTANCE.setupSuiteScopeCluster();
success = true;
StrictCheckSpanProcessor.restartTheProcessor();
} finally {
if (!success) {
afterClass();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,7 @@ public static synchronized void shutdown() {
* restartTheProcessor
*/
public static synchronized void restartTheProcessor() {
if (shutdown.get() == true) {
shutdown.set(false);
}
spanMap.clear();
}

/**
Expand Down

0 comments on commit 518b39f

Please sign in to comment.