Skip to content

Commit

Permalink
Add Slack stress test.
Browse files Browse the repository at this point in the history
  • Loading branch information
bullestock committed Jun 13, 2024
1 parent 692f8a8 commit e8799a2
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion frontend/esp32/main/console.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -117,10 +117,22 @@ static int test_logger(int argc, char**)
return 0;
}

static int test_slack(int, char**)
static int test_slack(int argc, char**)
{
printf("Running Slack test\n");

if (argc > 1)
{
int i = 0;
while (1)
{
printf("%d\n", i);
Slack_writer::instance().send_message(format("Slack stress test #%d", i));
++i;
vTaskDelay(1000 / portTICK_PERIOD_MS);
}
}

Slack_writer::instance().send_message(format("ESP frontend (%s) says hi",
get_identifier().c_str()));

Expand Down

0 comments on commit e8799a2

Please sign in to comment.