Skip to content

Commit 5d80384

Browse files
committed
add defers
Signed-off-by: Sarah Christoff <28318173+schristoff@users.noreply.github.com>
1 parent 8b890fd commit 5d80384

File tree

6 files changed

+9
-0
lines changed

6 files changed

+9
-0
lines changed
+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Dockerfile
2+
.cnab
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Dockerfile
2+
.cnab
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Dockerfile
2+
.cnab

cmd/porter/completion_test.go

+1
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ func TestCompletion(t *testing.T) {
2828

2929
func TestCompletion_SkipConfig(t *testing.T) {
3030
p := porter.NewTestPorter(t)
31+
defer p.Close()
3132
cmd := buildCompletionCommand(p.Porter)
3233
shouldSkip := shouldSkipConfig(cmd)
3334
require.True(t, shouldSkip, "expected that we skip loading configuration for the completion command")

pkg/grpc/portergrpc/installation_test.go

+1
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ func TestListInstallationsReturnsErrorIfUnableToGetPorterConnectionFromRequestCo
106106

107107
func setupTestPorterWithInstallations(t *testing.T, installations []instInfo) (context.Context, map[string]porter.DisplayInstallation) {
108108
p := porter.NewTestPorter(t)
109+
defer p.Close()
109110
insts := map[string]porter.DisplayInstallation{}
110111
for _, inst := range installations {
111112
installation := storage.NewInstallation(inst.namespace, inst.name)

tests/integration/dependenciesv2_test.go

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ func TestSharedDependencies(t *testing.T) {
2020
t.Parallel()
2121

2222
p := porter.NewTestPorter(t)
23+
defer p.Close()
2324
ctx := p.SetupIntegrationTest()
2425

2526
p.Config.SetExperimentalFlags(experimental.FlagDependenciesV2)

0 commit comments

Comments
 (0)