Skip to content

Commit 61e68dd

Browse files
committed
Fix bazel test defaults for envpool checks
1 parent ff4dcb1 commit 61e68dd

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

.bazelrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ build --incompatible_strict_action_env --cxxopt=-std=c++17 --host_cxxopt=-std=c+
66
build:debug --cxxopt=-DENVPOOL_TEST --compilation_mode=dbg -s
77
build:test --cxxopt=-DENVPOOL_TEST --copt=-g0 --copt=-O3 --copt=-DNDEBUG --copt=-msse --copt=-msse2 --copt=-mmmx
88
build:release --copt=-g0 --copt=-O3 --copt=-DNDEBUG --copt=-msse --copt=-msse2 --copt=-mmmx
9+
test --config=test
910

1011
build:clang-tidy --aspects @bazel_clang_tidy//clang_tidy:clang_tidy.bzl%clang_tidy_aspect
1112
build:clang-tidy --@bazel_clang_tidy//:clang_tidy_config=//:clang_tidy_config

envpool/core/state_buffer_queue_test.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ TEST(StateBufferQueueTest, NumPlayers) {
114114
EXPECT_EQ(slice.arr[1].Shape(0), 1);
115115
size += num_players;
116116
}
117-
std::vector<Array> out = queue.Wait(batch * max_num_players - size);
117+
std::vector<Array> out = queue.Wait();
118118
EXPECT_EQ(out[0].Shape(0), size);
119119
EXPECT_EQ(out[1].Shape(0), batch);
120120
}

0 commit comments

Comments
 (0)