Skip to content
Snippets Groups Projects
Verified Commit f0d37a8e authored by Timm Fitschen's avatar Timm Fitschen
Browse files

Merge branch 'f-async-execute' into f-dot-in-username

parents c666b122 7d86c08a
No related branches found
No related tags found
1 merge request!23Add tests for user creation/deletion/retrieval
Pipeline #25183 failed
...@@ -36,14 +36,13 @@ CLANG_TIDY_CMD = $(CLANG_TIDY) \ ...@@ -36,14 +36,13 @@ CLANG_TIDY_CMD = $(CLANG_TIDY) \
help: help:
@echo "Targets:" @echo "Targets:"
@echo " conan-install - Install locally with Conan." @echo " conan-install - Install locally with Conan."
@echo " style - auto-format the source files." @echo " format - auto-format the source files."
conan-install: conan-install:
conan install . -s "compiler.libcxx=libstdc++11" conan install . -s "compiler.libcxx=libstdc++11"
.PHONY: conan-install .PHONY: conan-install
format: conan-install format:
$(CLANG_FORMAT) -i --verbose \ $(CLANG_FORMAT) -i --verbose \
$$(find test/ -type f -iname "*.cpp" -o -iname "*.h" -o -iname "*.h.in") $$(find test/ -type f -iname "*.cpp" -o -iname "*.h" -o -iname "*.h.in")
$(CLANG_TIDY_CMD) $$(find test/ -type f -iname "*.cpp" -o -iname "*.h" -o -iname "*.h.in")
.PHONY: format .PHONY: format
...@@ -740,14 +740,12 @@ template <typename T, typename S> auto test_numeric_values_impl(AtomicDataType a ...@@ -740,14 +740,12 @@ template <typename T, typename S> auto test_numeric_values_impl(AtomicDataType a
const auto t_stat = retrieve_transaction->WaitForIt(); const auto t_stat = retrieve_transaction->WaitForIt();
EXPECT_TRUE(t_stat.IsTerminated()); EXPECT_TRUE(t_stat.IsTerminated());
EXPECT_FALSE(t_stat.IsError()); EXPECT_FALSE(t_stat.IsError());
ASSERT_EQ(retrieve_transaction->GetResultSet().size(), 1);
if (retrieve_transaction->GetResultSet().size() > 0) { const auto result = retrieve_transaction->GetResultSet().at(0);
const auto result = retrieve_transaction->GetResultSet().at(0); EXPECT_EQ(result.GetDataType(), a_type);
EXPECT_EQ(result.GetDataType(), a_type); const auto &retrieved_value = test_transaction::getValueAs<T>(result.GetValue());
const auto &retrieved_value = test_transaction::getValueAs<T>(result.GetValue()); EXPECT_EQ(retrieved_value, value);
// std::cout << "retrieved_value: " << retrieved_value << std::endl;
EXPECT_EQ(retrieved_value, value);
}
++i; ++i;
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment