Skip to content

Commit

Permalink
Don't set the TCCL before every test
Browse files Browse the repository at this point in the history
This prevents extensions from modifying the TCCL. The correct TCCL is
set at the start of the run.
  • Loading branch information
stuartwdouglas committed May 29, 2023
1 parent 3e5167e commit 13103ee
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -235,10 +235,6 @@ public void executionStarted(TestIdentifier testIdentifier) {
startTimes.put(testIdentifier, System.currentTimeMillis());
String testClassName = "";
Class<?> testClass = getTestClassFromSource(testIdentifier.getSource());
if (testClass != null) {
testClassName = testClass.getName();
Thread.currentThread().setContextClassLoader(testClass.getClassLoader());
}
for (TestRunListener listener : listeners) {
listener.testStarted(testIdentifier, testClassName);
}
Expand Down

0 comments on commit 13103ee

Please sign in to comment.