Skip to content

Commit

Permalink
Rename to remainingIterations
Browse files Browse the repository at this point in the history
  • Loading branch information
marcphilipp committed May 5, 2022
1 parent dca8763 commit cb10357
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class ClassDescriptor extends AbstractTestDescriptor {
private final ConcurrentMap<String, MethodDescriptor> methodsById = new ConcurrentHashMap<>();
private final Class<?> testClass;
private final Set<TestTag> tags;
final AtomicInteger remainingFinishes = new AtomicInteger();
final AtomicInteger remainingIterations = new AtomicInteger();
ExecutionStrategy executionStrategy = new IncludeMethodsExecutionStrategy();

ClassDescriptor(UniqueId uniqueId, Class<?> testClass, Set<TestTag> tags) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public void onBeforeClass(ITestClass testClass) {
@Override
public void onAfterClass(ITestClass testClass) {
testClassRegistry.finish(testClass.getRealClass(), __ -> true,
classDescriptor -> classDescriptor.remainingFinishes.incrementAndGet());
classDescriptor -> classDescriptor.remainingIterations.incrementAndGet());
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public void onConfigurationFailure(ITestResult result) {
@Override
public void onAfterClass(ITestClass testClass) {
testClassRegistry.finish(testClass.getRealClass(),
classDescriptor -> classDescriptor.remainingFinishes.decrementAndGet() == 0, classDescriptor -> {
classDescriptor -> classDescriptor.remainingIterations.decrementAndGet() == 0, classDescriptor -> {
finishMethodsNotYetReportedAsFinished(testClass);
Set<Throwable> failures = classFailures.remove(classDescriptor);
delegate.executionFinished(classDescriptor, toTestExecutionResult(failures));
Expand Down

0 comments on commit cb10357

Please sign in to comment.