Skip to content

Commit

Permalink
tests/ssx/single_sharded: fix -c1 and correct test file name
Browse files Browse the repository at this point in the history
  • Loading branch information
bashtanov committed Jun 26, 2024
1 parent 6635762 commit 0e2334f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/v/ssx/tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ rp_test(
SOURCES
abort_source_test.cc
sharded_ptr_test.cc
single_sharded.cc
single_sharded_test.cc
LIBRARIES v::seastar_testing_main
ARGS "-- -c 2"
LABELS ssx
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ struct caller {

SEASTAR_THREAD_TEST_CASE(single_sharded) {
ss::shard_id the_shard = ss::smp::count - 1;
ss::shard_id wrong_shard = std::max(ss::shard_id{0}, the_shard - 1);
ss::shard_id wrong_shard = ss::smp::count == 1 ? 0 : the_shard - 1;

ss::sharded<counter> counters;
ssx::single_sharded<single_service> single;
Expand Down

0 comments on commit 0e2334f

Please sign in to comment.