Java Code Examples for reactor.test.StepVerifier#setDefaultTimeout()

The following examples show how to use reactor.test.StepVerifier#setDefaultTimeout() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ClientThreadIntegrationTest.java    From reactive-grpc with BSD 3-Clause "New" or "Revised" License 6 votes vote down vote up
@Before
public void setupServer() throws Exception {
    StepVerifier.setDefaultTimeout(Duration.ofSeconds(3));

    server = ServerBuilder
            .forPort(0)
            .addService(service)
            .executor(Executors.newSingleThreadExecutor(
                    new ThreadFactoryBuilder().setNameFormat("TheGrpcServer").build()))
            .build()
            .start();
    channel = ManagedChannelBuilder
            .forAddress("localhost", server.getPort())
            .usePlaintext()
            .executor(Executors.newSingleThreadExecutor(
                    new ThreadFactoryBuilder().setNameFormat("TheGrpcClient").build()))
            .build();
}
 
Example 2
Source File: InstanceWebClientTest.java    From Moss with Apache License 2.0 4 votes vote down vote up
@BeforeClass
public static void setUp() {
    StepVerifier.setDefaultTimeout(Duration.ofSeconds(5));
}
 
Example 3
Source File: AbstractInstancesProxyControllerIntegrationTest.java    From Moss with Apache License 2.0 4 votes vote down vote up
@BeforeClass
public static void setUp() {
    StepVerifier.setDefaultTimeout(Duration.ofSeconds(5));
}
 
Example 4
Source File: InfoUpdaterTest.java    From Moss with Apache License 2.0 4 votes vote down vote up
@BeforeClass
public static void setUp() {
    StepVerifier.setDefaultTimeout(Duration.ofSeconds(5));
}
 
Example 5
Source File: StatusUpdaterTest.java    From Moss with Apache License 2.0 4 votes vote down vote up
@BeforeClass
public static void setUp() {
    StepVerifier.setDefaultTimeout(Duration.ofSeconds(5));
}
 
Example 6
Source File: ProbeEndpointsStrategyTest.java    From Moss with Apache License 2.0 4 votes vote down vote up
@BeforeClass
public static void setUp() {
    StepVerifier.setDefaultTimeout(Duration.ofSeconds(5));
}
 
Example 7
Source File: ContextPropagationIntegrationTest.java    From reactive-grpc with BSD 3-Clause "New" or "Revised" License 4 votes vote down vote up
@Before
public void init() {
    StepVerifier.setDefaultTimeout(Duration.ofSeconds(3));
    svc.reset();
    clientInterceptor.reset();
}
 
Example 8
Source File: ServerErrorIntegrationTest.java    From reactive-grpc with BSD 3-Clause "New" or "Revised" License 4 votes vote down vote up
@Before
public void setupServer() throws Exception {
    StepVerifier.setDefaultTimeout(Duration.ofSeconds(3));
    server = ServerBuilder.forPort(9000).addService(service).build().start();
    channel = ManagedChannelBuilder.forAddress("localhost", server.getPort()).usePlaintext().build();
}
 
Example 9
Source File: UnexpectedServerErrorIntegrationTest.java    From reactive-grpc with BSD 3-Clause "New" or "Revised" License 4 votes vote down vote up
@Before
public void init() {
    StepVerifier.setDefaultTimeout(Duration.ofSeconds(3));
}
 
Example 10
Source File: ReactiveClientStandardServerInteropTest.java    From reactive-grpc with BSD 3-Clause "New" or "Revised" License 4 votes vote down vote up
@Before
public void init() {
    StepVerifier.setDefaultTimeout(Duration.ofSeconds(5));
}
 
Example 11
Source File: EndToEndIntegrationTest.java    From reactive-grpc with BSD 3-Clause "New" or "Revised" License 4 votes vote down vote up
@Before
public void setupServer() throws Exception {
    StepVerifier.setDefaultTimeout(Duration.ofSeconds(3));
    server = ServerBuilder.forPort(9000).addService(service).build().start();
    channel = ManagedChannelBuilder.forAddress("localhost", server.getPort()).usePlaintext().build();
}
 
Example 12
Source File: AbstractInstancesProxyControllerIntegrationTest.java    From spring-boot-admin with Apache License 2.0 4 votes vote down vote up
@BeforeAll
public static void setUp() {
	StepVerifier.setDefaultTimeout(Duration.ofSeconds(5));
}
 
Example 13
Source File: InfoUpdaterTest.java    From spring-boot-admin with Apache License 2.0 4 votes vote down vote up
@BeforeAll
public static void setUp() {
	StepVerifier.setDefaultTimeout(Duration.ofSeconds(5));
}
 
Example 14
Source File: StatusUpdaterTest.java    From spring-boot-admin with Apache License 2.0 4 votes vote down vote up
@BeforeAll
public static void setUp() {
	StepVerifier.setDefaultTimeout(Duration.ofSeconds(5));
}
 
Example 15
Source File: ProbeEndpointsStrategyTest.java    From spring-boot-admin with Apache License 2.0 4 votes vote down vote up
@BeforeAll
public static void setUp() {
	StepVerifier.setDefaultTimeout(Duration.ofSeconds(5));
}