Skip to content

Commit

Permalink
Merge branch 'override-cpu-tests' into call-batch
Browse files Browse the repository at this point in the history
  • Loading branch information
csegarragonz committed Aug 30, 2023
2 parents 1466107 + 560e5a2 commit a196a01
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion tests/test/util/test_config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ TEST_CASE("Test default system config initialisation", "[util]")
REQUIRE(conf.redisPort == "6379");

REQUIRE(conf.noScheduler == 0);
REQUIRE(conf.overrideCpuCount == 0);
REQUIRE(conf.noTopologyHints == "off");
REQUIRE(conf.noSingleHostOptimisations == 0);
REQUIRE(conf.batchSchedulerMode == "bin-pack");
Expand Down
4 changes: 2 additions & 2 deletions tests/test/util/test_environment.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@ TEST_CASE("Test setting environment variables", "[util]")

TEST_CASE("Test overriding CPU count", "[util]")
{
// Check default cores is same as available concurrency
// Check default cores is same as usable cores
auto& conf = getSystemConfig();
unsigned int defaultCores = getUsableCores();
REQUIRE(defaultCores == std::thread::hardware_concurrency());
REQUIRE(defaultCores == getUsableCores());

// Check it can be overridden
conf.overrideCpuCount = 1234;
Expand Down

0 comments on commit a196a01

Please sign in to comment.