Skip to content

Commit

Permalink
chore: fix leaked sleep services
Browse files Browse the repository at this point in the history
  • Loading branch information
IronCore864 committed Sep 23, 2024
1 parent 298c839 commit a3ad795
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/run_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ services:

createLayer(t, pebbleDir, "001-simple-layer.yaml", layerYAML)

_, _ = pebbleRun(t, pebbleDir)
_, stderrCh := pebbleRun(t, pebbleDir)
waitForLog(t, stderrCh, "pebble", "Started default services", 3*time.Second)

waitForFile(t, filepath.Join(pebbleDir, "svc1"), 3*time.Second)
waitForFile(t, filepath.Join(pebbleDir, "svc2"), 3*time.Second)
Expand Down Expand Up @@ -141,6 +142,7 @@ services:
stdoutCh, stderrCh := pebbleRun(t, pebbleDir, "--verbose")
waitForLog(t, stderrCh, "pebble", "Started daemon", 3*time.Second)
waitForLog(t, stdoutCh, "svc1", "hello world", 3*time.Second)
waitForLog(t, stderrCh, "pebble", "Started default services", 3*time.Second)
}

// TestArgs tests that Pebble provides additional arguments to a service
Expand All @@ -166,6 +168,7 @@ services:
)
waitForLog(t, stderrCh, "pebble", "Started daemon", 3*time.Second)
waitForLog(t, stdoutCh, "svc1", "hello world", 3*time.Second)
waitForLog(t, stderrCh, "pebble", "Started default services", 3*time.Second)
}

// TestIdentities tests that Pebble seeds identities from a file
Expand Down

0 comments on commit a3ad795

Please sign in to comment.