From 818b0325ad34235f7e8dc215c8d23b6a993cf057 Mon Sep 17 00:00:00 2001 From: sfc-gh-tclinkenbeard Date: Tue, 18 May 2021 16:38:39 -0700 Subject: [PATCH] Check for errors while performing compaction in unit tests --- fdbserver/ConfigDatabaseUnitTests.actor.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/fdbserver/ConfigDatabaseUnitTests.actor.cpp b/fdbserver/ConfigDatabaseUnitTests.actor.cpp index 6e63bd4ecf..0ffa89b990 100644 --- a/fdbserver/ConfigDatabaseUnitTests.actor.cpp +++ b/fdbserver/ConfigDatabaseUnitTests.actor.cpp @@ -275,6 +275,10 @@ template Future check(Env& env, Args&&... args) { return waitOrError(env.check(std::forward(args)...), env.getError()); } +template +Future compact(Env& env, Args&&... args) { + return waitOrError(env.compact(std::forward(args)...), env.getError()); +} } // namespace @@ -391,7 +395,7 @@ TEST_CASE("/fdbserver/ConfigDB/BroadcasterToLocalConfig/Compact") { state BroadcasterToLocalConfigEnvironment env("class-A"); wait(env.setup()); wait(set(env, "class-A"_sr, 1)); - wait(env.compact()); + wait(compact(env)); wait(check(env, 1)); return Void(); }