Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5ca644e commit bfe8f19Copy full SHA for bfe8f19
1 file changed
sqldev/src/main/java/org/utplsql/sqldev/model/runner/Run.java
@@ -103,7 +103,13 @@ public int getTotalNumberOfCompletedTests() {
103
|| counter.getError() == null) {
104
return -1;
105
}
106
- return counter.getDisabled() + counter.getSuccess() + counter.getFailure() + counter.getError();
+ int total = counter.getDisabled() + counter.getSuccess() + counter.getFailure() + counter.getError();
107
+ if (totalNumberOfTests != null && total > totalNumberOfTests) {
108
+ // can happen when run is cancelled and two processes are updating the run in parallel
109
+ // not worth to ensure consistency for this case, using synchronized will not be enough
110
+ total = totalNumberOfTests;
111
+ }
112
+ return total;
113
114
115
public String getReporterId() {
0 commit comments