Przeglądaj źródła

Bounded the heavy e2e suites

Efren Yevale Varela 3 tygodni temu
rodzic
commit
5a28c6c9df
2 zmienionych plików z 13 dodań i 1 usunięć
  1. 6 0
      .config/nextest.toml
  2. 7 1
      tests/e2e/harness.rs

+ 6 - 0
.config/nextest.toml

@@ -0,0 +1,6 @@
+[test-groups]
+heavy-e2e = { max-threads = 2 }
+
+[[profile.default.overrides]]
+filter = 'binary(e2e_grants) | binary(e2e_abuse)'
+test-group = 'heavy-e2e'

+ 7 - 1
tests/e2e/harness.rs

@@ -161,7 +161,13 @@ impl World {
       "bind_addr": "127.0.0.1:0",
       "health_addr": "127.0.0.1:0",
       "tls": {"cert_path": "/tmp/e2e-cert.pem", "key_path": "/tmp/e2e-key.pem"},
-      "database": {"url": pg_url},
+      "database": {
+        "url": pg_url,
+        "lock_timeout_secs": 5,
+        "statement_timeout_secs": 15,
+        "acquire_timeout_secs": 20,
+      },
+      "failure_policy": {"request_timeout_secs": 60},
       "redis": {
         "url": redis_url,
         "durability": "waitaof",