folly: fix EmplaceIterCtor test
[folly.git] / folly / test / small_vector_test.cpp
index f78d34ee0a7b755cfe529497b7f1b38beaf1de75..f31bafa71183763dd8cdebc4c8aab0f95eafa6b8 100644 (file)
@@ -811,7 +811,7 @@ TEST(small_vector, EmplaceIterCtor) {
   std::vector<std::unique_ptr<int>> uv(v.begin(), v.end());
 
   std::vector<int*> w{new int(1), new int(2)};
-  small_vector<std::unique_ptr<int>> uw(v.begin(), v.end());
+  small_vector<std::unique_ptr<int>> uw(w.begin(), w.end());
 }
 
 TEST(small_vector, InputIterator) {