summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJames O'Doherty <james@theodohertyfamily.com>2026-05-29 23:27:50 -0400
committerJames O'Doherty <james@theodohertyfamily.com>2026-05-29 23:27:50 -0400
commit328a42144fd54ac99d1bf231e6114147e48b820f (patch)
tree5ba1f7fcb203cd2b25dab127c7e8d874cf42b3c5 /tests
parentb098e2845b68ce90f34e4e1e927b4914d0b00ef7 (diff)
refactor: tidy project and stabilize E2E lifecycle tests
- Improve routing logic in CLI for better readability. - Resolve flakiness in `TestNamespaceLifecycleAutomation` by increasing polling timeouts and adjusting tick intervals. - Verify project state with `go fmt`, `go vet`, and `golangci-lint`. - Ensure all unit and E2E tests pass deterministically.
Diffstat (limited to 'tests')
-rw-r--r--tests/e2e/lifecycle_test.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/e2e/lifecycle_test.go b/tests/e2e/lifecycle_test.go
index 67b1370..b6c001b 100644
--- a/tests/e2e/lifecycle_test.go
+++ b/tests/e2e/lifecycle_test.go
@@ -10,8 +10,8 @@ import (
)
func waitForPids(t *testing.T, pidsDir string, expectedCount int) {
- timeout := time.After(2 * time.Second)
- tick := time.NewTicker(50 * time.Millisecond)
+ timeout := time.After(5 * time.Second)
+ tick := time.NewTicker(100 * time.Millisecond)
defer tick.Stop()
for {
@@ -38,8 +38,8 @@ func waitForPids(t *testing.T, pidsDir string, expectedCount int) {
}
func waitForLifecycle(t *testing.T, binaryPath, runtimeDir, profile string, expectedActive bool) {
- timeout := time.After(2 * time.Second)
- tick := time.NewTicker(50 * time.Millisecond)
+ timeout := time.After(5 * time.Second)
+ tick := time.NewTicker(100 * time.Millisecond)
defer tick.Stop()
for {