Skip to content

Commit a2964b5

Browse files
authored
Remove tests
1 parent b2fbbe1 commit a2964b5

2 files changed

Lines changed: 1 addition & 39 deletions

File tree

.github/workflows/mac.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ jobs:
7272
run: scripts/run_tests.py --running-type="processes" --counts 1 2 3 4
7373
env:
7474
PPC_NUM_THREADS: 1
75-
PPC_PERF_MAX_TIME: 30
75+
PPC_TASK_MAX_TIME: 30
7676
- name: Run tests (threads)
7777
run: scripts/run_tests.py --running-type="threads" --counts 1 2 3 4
7878
env:

modules/task/tests/task_tests.cpp

Lines changed: 0 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -89,15 +89,6 @@ TEST(TaskTests, CheckInt32t) {
8989
ASSERT_EQ(static_cast<size_t>(test_task.GetOutput()), in.size());
9090
}
9191

92-
TEST(TaskTests, CheckInt32tSlow) {
93-
std::vector<int32_t> in(20, 1);
94-
ppc::test::FakeSlowTask<std::vector<int32_t>, int32_t> test_task(in);
95-
ASSERT_EQ(test_task.Validation(), true);
96-
test_task.PreProcessing();
97-
test_task.Run();
98-
ASSERT_ANY_THROW(test_task.PostProcessing());
99-
}
100-
10192
TEST(TaskTests, SlowTaskRespectsEnvOverride) {
10293
env::detail::set_scoped_environment_variable scoped("PPC_TASK_MAX_TIME", "3");
10394
std::vector<int32_t> in(20, 1);
@@ -277,35 +268,6 @@ TEST(TaskTest, TaskDestructorThrowsIfEmpty) {
277268
ppc::util::DestructorFailureFlag::Unset();
278269
}
279270

280-
TEST(TaskTest, InternalTimeTestThrowsIfTimeoutExceeded) {
281-
struct SlowTask : Task<std::vector<int32_t>, int32_t> {
282-
explicit SlowTask(const std::vector<int32_t> &in) {
283-
this->GetInput() = in;
284-
}
285-
bool ValidationImpl() override {
286-
return true;
287-
}
288-
bool PreProcessingImpl() override {
289-
std::this_thread::sleep_for(std::chrono::seconds(2));
290-
return true;
291-
}
292-
bool RunImpl() override {
293-
return true;
294-
}
295-
bool PostProcessingImpl() override {
296-
return true;
297-
}
298-
};
299-
300-
std::vector<int32_t> in(20, 1);
301-
SlowTask task(in);
302-
task.GetStateOfTesting() = StateOfTesting::kFunc;
303-
task.Validation();
304-
EXPECT_NO_THROW(task.PreProcessing());
305-
task.Run();
306-
EXPECT_THROW(task.PostProcessing(), std::runtime_error);
307-
}
308-
309271
class DummyTask : public Task<int, int> {
310272
public:
311273
using Task::Task;

0 commit comments

Comments
 (0)