Skip to content

Commit c8792f6

Browse files
Test attributes: fixing wrongful lambda capture
constexpr doesn't need to be captured. failed ci/cd
1 parent 729851c commit c8792f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_attributes.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ TEST_CASE("attribute test - multi threaded") {
182182
// put attributes with multiple threads simultaneously
183183
std::vector<std::future<void>> tasks;
184184
for (unsigned int i = 0; i < n_tasks; ++i) {
185-
auto task = std::async([&logger, i, n_values] {
185+
auto task = std::async([&logger, i] {
186186
for (auto j = 0; j < n_values; ++j)
187187
logger.attrs().put(fmt_lib::format("log_{}_key_{}", i, j), fmt_lib::format("log_{}_value_{}", i, j));
188188
});

0 commit comments

Comments
 (0)