Skip to content

Commit 4d80886

Browse files
authored
all: exclude internal/testing package from jacoco coverage report
1 parent c8b2cdc commit 4d80886

File tree

3 files changed

+2
-56
lines changed

3 files changed

+2
-56
lines changed

all/build.gradle

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,8 @@ jacocoTestReport {
6969
classDirectories = files(classDirectories.files.collect {
7070
fileTree(dir: it,
7171
exclude: [
72-
'**/io/grpc/okhttp/internal/**'
72+
'**/io/grpc/internal/testing/**',
73+
'**/io/grpc/okhttp/internal/**',
7374
])
7475
})
7576
}

testing/src/main/java/io/grpc/internal/testing/TestUtils.java

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@
3939
import java.util.ArrayList;
4040
import java.util.Collections;
4141
import java.util.List;
42-
import java.util.concurrent.TimeUnit;
4342
import javax.net.ssl.SSLContext;
4443
import javax.net.ssl.SSLSocketFactory;
4544
import javax.net.ssl.TrustManagerFactory;
@@ -204,18 +203,5 @@ public static SSLSocketFactory newSslSocketFactoryForCa(Provider provider,
204203
return context.getSocketFactory();
205204
}
206205

207-
/**
208-
* Sleeps for at least the specified time. When in need of a guaranteed sleep time, use this in
209-
* preference to {@code Thread.sleep} which might not sleep for the required time.
210-
*/
211-
public static void sleepAtLeast(long millis) throws InterruptedException {
212-
long delay = TimeUnit.MILLISECONDS.toNanos(millis);
213-
long end = System.nanoTime() + delay;
214-
while (delay > 0) {
215-
TimeUnit.NANOSECONDS.sleep(delay);
216-
delay = end - System.nanoTime();
217-
}
218-
}
219-
220206
private TestUtils() {}
221207
}

testing/src/test/java/io/grpc/internal/testing/TestUtilsTest.java

Lines changed: 0 additions & 41 deletions
This file was deleted.

0 commit comments

Comments
 (0)