mirror of
https://github.com/containrrr/watchtower.git
synced 2025-12-14 06:06:38 +01:00
fix(lifecycle): cleanup lifecycle
- removes unwieldy SkipUpdate return value in favor of errors.Is - generalizes the code for all four phases - allows timeout to be defined for all phases - enables explicit unit in timeout label values (in addition to implicit minutes)
This commit is contained in:
parent
76f9cea516
commit
023c1a7d93
10 changed files with 160 additions and 179 deletions
|
|
@ -308,7 +308,7 @@ var _ = Describe("the client", func() {
|
|||
),
|
||||
)
|
||||
|
||||
_, err := client.ExecuteCommand(containerID, cmd, 1)
|
||||
err := client.ExecuteCommand(containerID, cmd, 1)
|
||||
Expect(err).NotTo(HaveOccurred())
|
||||
// Note: Since Execute requires opening up a raw TCP stream to the daemon for the output, this will fail
|
||||
// when using the mock API server. Regardless of the outcome, the log should include the container ID
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue