X-Git-Url: http://plrg.eecs.uci.edu/git/?p=folly.git;a=blobdiff_plain;f=folly%2Ffutures%2Ftest%2FViaTest.cpp;h=2914cb2a7f0bf852919544104ea71bac6f33e623;hp=765fdf6c74010f9b62127ab8bd5505f3b57c0a2e;hb=9517f7b4703ee9a62436ae90eb2fda0a4c2e5c6e;hpb=bf542c7195297737547173a35fc4fec2fd6bfd17 diff --git a/folly/futures/test/ViaTest.cpp b/folly/futures/test/ViaTest.cpp index 765fdf6c..2914cb2a 100644 --- a/folly/futures/test/ViaTest.cpp +++ b/folly/futures/test/ViaTest.cpp @@ -143,9 +143,9 @@ TEST_F(ViaFixture, chainVias) { return 1; }).then([=](int val) { return makeFuture(val).via(westExecutor.get()) - .then([=](int val) mutable { + .then([=](int v) mutable { EXPECT_EQ(std::this_thread::get_id(), westThreadId); - return val + 1; + return v + 1; }); }).then([=](int val) { // even though ultimately the future that triggers this one executed in