Skip to content

Commit

Permalink
Pipeline configuration added to mock exchange
Browse files Browse the repository at this point in the history
  • Loading branch information
Sirma committed Apr 28, 2016
1 parent b514580 commit 0ed0953
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 2 additions & 0 deletions rtbkit/examples/mock_exchange_connector.h
Expand Up @@ -46,6 +46,8 @@ struct MockExchangeConnector : public HttpExchangeConnector {
getParam(parameters, bindHost, "bindHost");
getParam(parameters, performNameLookup, "performNameLookup");
getParam(parameters, backlog, "connectionBacklog");

configurePipeline(parameters["pipeline"]);
}

void start() {
Expand Down
7 changes: 5 additions & 2 deletions rtbkit/examples/rtbkit_integration_test.cc
Expand Up @@ -315,7 +315,7 @@ struct Components

for (auto& connector : exchangeConnectors) {
connector->enableUntil(Date::positiveInfinity());

connector->configurePipeline(Json::Value::null);
int port = connector->init(ports, "localhost", 2 /* threads */);
exchangePorts.push_back(port);
}
Expand Down Expand Up @@ -429,7 +429,10 @@ int main(int argc, char ** argv)
NetworkAddress bids(components.exchangePorts[i % components.exchangePorts.size()]);
NetworkAddress wins(components.winStreamPort);
NetworkAddress events(components.eventStreamPort);
exchange.add(new MockBidSource(bids, nBidRequestsPerThread), new MockWinSource(wins), new MockEventSource(events));

exchange.add(new MockBidSource(bids, nBidRequestsPerThread),
new MockWinSource(wins),
new MockEventSource(events));
}

// Dump the budget stats while we wait for the test to finish. Only the
Expand Down

0 comments on commit 0ed0953

Please sign in to comment.