Skip to content

Commit

Permalink
test: fully reset ghttp server (#1121)
Browse files Browse the repository at this point in the history
  • Loading branch information
piksel authored Nov 2, 2021
1 parent 1b405d4 commit 0060cd6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/container/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 0060cd6

Please sign in to comment.