projects
/
folly.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
folly/futures/test/ViaTest.cpp: avoid shadowing warnings
[folly.git]
/
folly
/
futures
/
test
/
ViaTest.cpp
diff --git
a/folly/futures/test/ViaTest.cpp
b/folly/futures/test/ViaTest.cpp
index 765fdf6c74010f9b62127ab8bd5505f3b57c0a2e..2914cb2a7f0bf852919544104ea71bac6f33e623 100644
(file)
--- 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())
return 1;
}).then([=](int val) {
return makeFuture(val).via(westExecutor.get())
- .then([=](int v
al
) mutable {
+ .then([=](int v) mutable {
EXPECT_EQ(std::this_thread::get_id(), westThreadId);
EXPECT_EQ(std::this_thread::get_id(), westThreadId);
- return v
al
+ 1;
+ return v + 1;
});
}).then([=](int val) {
// even though ultimately the future that triggers this one executed in
});
}).then([=](int val) {
// even though ultimately the future that triggers this one executed in