Re-enabled and Fix WindowsEventEngine test suite (#31393)

This test was disabled (assumed inadvertently) in #30952, then the test
itself was silently broken in #31265.
pull/31395/head
AJ Heller 2 years ago committed by GitHub
parent 7827868762
commit b957f45df6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 14
      test/core/event_engine/test_suite/windows_event_engine_test.cc

@ -11,9 +11,16 @@
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
#include <grpc/support/port_platform.h>
#ifdef GPR_WINDOWS
#include <grpc/grpc.h>
#include "src/core/lib/event_engine/windows/windows_engine.h"
#include "test/core/event_engine/test_suite/event_engine_test.h"
#include "test/core/util/test_config.h"
int main(int argc, char** argv) {
testing::InitGoogleTest(&argc, argv);
grpc::testing::TestEnvironment env(&argc, argv);
@ -22,7 +29,12 @@ int main(int argc, char** argv) {
grpc_event_engine::experimental::WindowsEventEngine>();
};
SetEventEngineFactories(factory, factory);
return RUN_ALL_TESTS();
// TODO(ctiller): EventEngine temporarily needs grpc to be initialized first
// until we clear out the iomgr shutdown code.
grpc_init();
int r = RUN_ALL_TESTS();
grpc_shutdown();
return r;
}
#else // not GPR_WINDOWS

Loading…
Cancel
Save