mirror of
https://github.com/containrrr/watchtower.git
synced 2025-09-21 21:30:48 +02:00
test: fully reset ghttp server (#1121)
This commit is contained in:
parent
1b405d4c77
commit
0060cd6ee4
1 changed files with 2 additions and 2 deletions
|
@ -22,14 +22,14 @@ import (
|
|||
var _ = Describe("the client", func() {
|
||||
var docker *cli.Client
|
||||
var mockServer *ghttp.Server
|
||||
BeforeSuite(func() {
|
||||
BeforeEach(func() {
|
||||
mockServer = ghttp.NewServer()
|
||||
docker, _ = cli.NewClientWithOpts(
|
||||
cli.WithHost(mockServer.URL()),
|
||||
cli.WithHTTPClient(mockServer.HTTPTestServer.Client()))
|
||||
})
|
||||
AfterEach(func() {
|
||||
mockServer.Reset()
|
||||
mockServer.Close()
|
||||
})
|
||||
Describe("WarnOnHeadPullFailed", func() {
|
||||
containerUnknown := *mockContainerWithImageName("unknown.repo/prefix/imagename:latest")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue