mirror of
https://github.com/facebookincubator/mvfst.git
synced 2025-08-08 09:42:06 +03:00
folly::Optional missing type parameter in QuicTransportBaseTest
Summary: Add missing type parameter to two instances of `folly::Optional` introduced in D21653651 (98e0e4dc5d
). It seems to build fine without the type parameters using buck on a devserver, but fails using CMake on an ubuntu machine.
Reviewed By: udippant
Differential Revision: D22632231
fbshipit-source-id: dec8ad2e11ce90b59dec4d7a9b9e1139b8cc1f41
This commit is contained in:
committed by
Facebook GitHub Bot
parent
63a238afb6
commit
fb07eef043
@@ -3426,7 +3426,12 @@ TEST_F(
|
||||
const std::pair<QuicErrorCode, std::string> defaultError = std::make_pair(
|
||||
GenericApplicationErrorCode::NO_ERROR,
|
||||
toString(GenericApplicationErrorCode::NO_ERROR));
|
||||
EXPECT_CALL(*cb, close(transport.get(), folly::Optional(defaultError)));
|
||||
EXPECT_CALL(
|
||||
*cb,
|
||||
close(
|
||||
transport.get(),
|
||||
folly::Optional<std::pair<QuicErrorCode, std::string>>(
|
||||
defaultError)));
|
||||
transport->close(folly::none);
|
||||
Mock::VerifyAndClearExpectations(cb.get());
|
||||
InSequence s;
|
||||
@@ -3448,7 +3453,11 @@ TEST_F(
|
||||
const auto testError = std::make_pair(
|
||||
QuicErrorCode(LocalErrorCode::CONNECTION_RESET),
|
||||
std::string("testError"));
|
||||
EXPECT_CALL(*cb, close(transport.get(), folly::Optional(testError)));
|
||||
EXPECT_CALL(
|
||||
*cb,
|
||||
close(
|
||||
transport.get(),
|
||||
folly::Optional<std::pair<QuicErrorCode, std::string>>(testError)));
|
||||
transport->close(testError);
|
||||
Mock::VerifyAndClearExpectations(cb.get());
|
||||
InSequence s;
|
||||
|
Reference in New Issue
Block a user