Skip to content

Commit

Permalink
fixup: test1
Browse files Browse the repository at this point in the history
  • Loading branch information
eugeneo committed Nov 11, 2024
1 parent fc0bdf2 commit eb31ad0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
6 changes: 2 additions & 4 deletions src/core/lib/event_engine/posix_engine/posix_endpoint.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1257,16 +1257,14 @@ PosixEndpointImpl::PosixEndpointImpl(EventHandle* handle,
std::shared_ptr<EventEngine> engine,
MemoryAllocator&& /*allocator*/,
const PosixTcpOptions& options)
: sock_(
PosixSocketWrapper(handle->Poller()->GetSystemApi()->AdoptExternalFd(
handle->WrappedFd()))),
on_done_(on_done),
: on_done_(on_done),
traced_buffers_(),
handle_(handle),
poller_(handle->Poller()),
engine_(engine) {
fd_ =
handle_->Poller()->GetSystemApi()->AdoptExternalFd(handle_->WrappedFd());
sock_ = PosixSocketWrapper(fd_);
PosixSocketWrapper sock(fd_);
CHECK(options.resource_quota != nullptr);
auto peer_addr_string = sock.PeerAddressString(*get_system_api());
Expand Down
4 changes: 2 additions & 2 deletions test/core/event_engine/posix/posix_endpoint_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -194,13 +194,12 @@ class Worker : public grpc_core::DualRefCounted<Worker> {

class PosixEndpointTest : public ::testing::TestWithParam<bool> {
void SetUp() override {
PosixSystemApi system_api;
oracle_ee_ = std::make_shared<PosixOracleEventEngine>();
scheduler_ =
std::make_unique<grpc_event_engine::experimental::TestScheduler>(
posix_ee_.get());
EXPECT_NE(scheduler_, nullptr);
poller_ = MakeDefaultPoller(&system_api, scheduler_.get());
poller_ = MakeDefaultPoller(&system_api_, scheduler_.get());
posix_ee_ = PosixEventEngine::MakeTestOnlyPosixEventEngine(poller_);
EXPECT_NE(posix_ee_, nullptr);
scheduler_->ChangeCurrentEventEngine(posix_ee_.get());
Expand Down Expand Up @@ -231,6 +230,7 @@ class PosixEndpointTest : public ::testing::TestWithParam<bool> {
std::unique_ptr<TestScheduler> scheduler_;
std::shared_ptr<EventEngine> posix_ee_;
std::shared_ptr<EventEngine> oracle_ee_;
PosixSystemApi system_api_;
};

TEST_P(PosixEndpointTest, ConnectExchangeBidiDataTransferTest) {
Expand Down

0 comments on commit eb31ad0

Please sign in to comment.