From 424a4243478b51d4b4b7969f06f0305e1588185a Mon Sep 17 00:00:00 2001 From: Maximilian Roos Date: Fri, 28 Jun 2024 12:12:43 -0700 Subject: [PATCH 1/2] test: Give book tests more time under nextest One one of my older machines (which is still a 10-core M1 Max MacBook Pro...) the book tests time out under `nextest`. This gives them more time --- .config/nextest.toml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.config/nextest.toml b/.config/nextest.toml index 6297c2fe4268..5abe0ff92d69 100644 --- a/.config/nextest.toml +++ b/.config/nextest.toml @@ -18,7 +18,8 @@ max-threads = 1 [[profile.default.overrides]] filter = 'package(mdbook-prql)' -slow-timeout = {period = "8s", terminate-after = 2} +# These are testing dozens of queries, so we give them more time. +slow-timeout = {period = "20s", terminate-after = 2} test-group = 'docs-mdbook' [test-groups.docs-mdbook] From 6fe2574196916768bf1528cf6c6b6681eb85fd4b Mon Sep 17 00:00:00 2001 From: Maximilian Roos Date: Sun, 30 Jun 2024 14:21:43 -0700 Subject: [PATCH 2/2] --- .config/nextest.toml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.config/nextest.toml b/.config/nextest.toml index 5abe0ff92d69..e4b78ebceb6d 100644 --- a/.config/nextest.toml +++ b/.config/nextest.toml @@ -16,6 +16,11 @@ test-group = 'test-dbs' # the database has already been setup. For now, we can use cargo test instead. max-threads = 1 +[[profile.default.overrides]] +# cli tests take a bit longer +filter = 'test(cli)' +slow-timeout = {period = "1s"} + [[profile.default.overrides]] filter = 'package(mdbook-prql)' # These are testing dozens of queries, so we give them more time.