Skip to content

Commit 7524955

Browse files
rbereckasebasslash
andauthored
Update team_project_access_integration_test.go
Co-authored-by: Sebastian Rivera <[email protected]>
1 parent 916196f commit 7524955

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

team_project_access_integration_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -237,12 +237,12 @@ func TestTeamProjectAccessesAdd(t *testing.T) {
237237
}
238238

239239
tpa, err := client.TeamProjectAccess.Add(ctx, options)
240-
defer func() {
240+
t.Cleanup(func() {
241241
err := client.TeamProjectAccess.Remove(ctx, tpa.ID)
242242
if err != nil {
243243
t.Logf("error removing team access (%s): %s", tpa.ID, err)
244244
}
245-
}()
245+
})
246246

247247
require.NoError(t, err)
248248

0 commit comments

Comments
 (0)