Remove sleep from Observability Interop Test binary now that its done in close() (#9977)

After #9972, the `sleep()` is done inside Observability `close()`, we can remove this `sleep()` in the Observability Interop test binary.
This commit is contained in:
Stanley Cheung 2023-03-22 16:50:09 -07:00 committed by GitHub
parent 3634901849
commit a6cdf498c9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 6 deletions

View File

@ -20,7 +20,6 @@ import io.grpc.gcp.observability.GcpObservability;
import io.grpc.testing.integration.TestServiceClient;
import io.grpc.testing.integration.TestServiceServer;
import java.util.Arrays;
import java.util.concurrent.TimeUnit;
/**
* Combined interop client and server for observability testing.
@ -47,11 +46,6 @@ public final class TestServiceInterop {
} else {
TestServiceServer.main(args);
}
// TODO(stanleycheung): remove this once the observability exporter plugin is able to
// gracefully flush observability data to cloud at shutdown
final int o11yCloseSleepSeconds = 65;
System.out.println("Sleeping " + o11yCloseSleepSeconds + " seconds before exiting");
Thread.sleep(TimeUnit.MILLISECONDS.convert(o11yCloseSleepSeconds, TimeUnit.SECONDS));
}
}