Skip to content

Commit 9d76a35

Browse files
committed
fix leave
Signed-off-by: Miguel Martinez <miguel@chainloop.dev>
1 parent 5de4411 commit 9d76a35

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

app/cli/cmd/organization_delete.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ func newOrganizationDeleteCmd() *cobra.Command {
2828
Use: "delete",
2929
Short: "Delete an organization",
3030
Long: "Delete an organization. Only organization owners can delete an organization.",
31-
RunE: func(cmd *cobra.Command, args []string) error {
31+
RunE: func(cmd *cobra.Command, _ []string) error {
3232
ctx := cmd.Context()
3333

3434
fmt.Printf("You are about to delete the organization %q\n", orgName)

app/controlplane/pkg/biz/membership_integration_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ func (s *membershipIntegrationTestSuite) TestDeleteWithOrg() {
117117
s.NoError(err)
118118
})
119119

120-
s.T().Run("can leave when there are more than 1 member", func(t *testing.T) {
120+
s.Run("can leave when there are more than 1 member", func() {
121121
err := s.Membership.Leave(ctx, user.ID, mUserSharedOrg.ID.String())
122122
s.NoError(err)
123123
// The org should not be deleted
@@ -132,7 +132,7 @@ func (s *membershipIntegrationTestSuite) TestDeleteWithOrg() {
132132
s.Equal(user2.ID, members[0].User.ID)
133133
})
134134

135-
s.T().Run("cannot leave when would become sole owner", func(t *testing.T) {
135+
s.Run("cannot leave when would become sole owner", func() {
136136
err := s.Membership.Leave(ctx, user2.ID, mUser2SharedOrg.ID.String())
137137
s.Error(err)
138138
s.True(biz.IsErrValidation(err))

0 commit comments

Comments
 (0)