Skip to content

Commit

Permalink
chore: apply feedback suggestions
Browse files Browse the repository at this point in the history
Apply PR feedback suggestions to use a single line error check.

Co-authored-by: Manuel de la Peña <social.mdelapenya@gmail.com>
  • Loading branch information
stevenh and mdelapenya authored Aug 7, 2024
1 parent b5bcb47 commit bb2101f
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions port_forwarding_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,7 @@ func TestExposeHostPorts(t *testing.T) {
require.NoError(tt, err)

tt.Cleanup(func() {
err := nw.Remove(context.Background())
require.NoError(tt, err)
require.NoError(tt, nw.Remove(context.Background()))
})

req.Networks = []string{nw.Name}
Expand All @@ -100,8 +99,7 @@ func TestExposeHostPorts(t *testing.T) {
c, err := testcontainers.GenericContainer(ctx, req)
require.NoError(tt, err)
tt.Cleanup(func() {
err := c.Terminate(context.Background())
require.NoError(tt, err)
require.NoError(tt, c.Terminate(context.Background()))
})

if tc.hasHostAccess {
Expand Down

0 comments on commit bb2101f

Please sign in to comment.