Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c1c217a

Browse files
committed
fix unit test
1 parent b39029f commit c1c217a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

coderd/members_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ func TestAddMember(t *testing.T) {
3333
func TestDeleteMember(t *testing.T) {
3434
t.Parallel()
3535

36-
t.Run("NotAllowed", func(t *testing.T) {
36+
t.Run("Allowed", func(t *testing.T) {
3737
t.Parallel()
3838
owner := coderdtest.New(t, nil)
3939
first := coderdtest.CreateFirstUser(t, owner)
@@ -45,7 +45,7 @@ func TestDeleteMember(t *testing.T) {
4545
// this test should be updated to check there is no error.
4646
// nolint:gocritic // must be an owner to see the user
4747
err := owner.DeleteOrganizationMember(ctx, first.OrganizationID, user.Username)
48-
require.ErrorContains(t, err, "Multi-organizations is currently an experiment")
48+
require.NoError(t, err)
4949
})
5050
}
5151

0 commit comments

Comments
 (0)