Skip to content

Commit f45a32e

Browse files
committed
test: add timeouts to ITOtelErrorType.java
1 parent fe20c3d commit f45a32e

File tree

1 file changed

+3
-0
lines changed
  • sdk-platform-java/java-showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it

1 file changed

+3
-0
lines changed

sdk-platform-java/java-showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITOtelErrorType.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,10 @@
8484
import org.junit.jupiter.api.AfterEach;
8585
import org.junit.jupiter.api.BeforeEach;
8686
import org.junit.jupiter.api.Test;
87+
import org.junit.jupiter.api.Timeout;
88+
import java.util.concurrent.TimeUnit;
8789

90+
@Timeout(value = 30, unit = TimeUnit.SECONDS)
8891
class ITOtelErrorType {
8992
private InMemorySpanExporter spanExporter;
9093
private OpenTelemetrySdk openTelemetrySdk;

0 commit comments

Comments
 (0)