Skip to content

Commit

Permalink
update test
Browse files Browse the repository at this point in the history
  • Loading branch information
iychoi committed Feb 11, 2025
1 parent da32392 commit d9bcf81
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions test/testcases/admin_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,16 +67,13 @@ func testCreateAndRemoveUser(t *testing.T) {
testUsername := "test_user"
testPassword := "test_password"

user, err := fs.GetUser(conn, testUsername, account.ClientZone)
_, err = fs.GetUser(conn, testUsername, account.ClientZone)
if err == nil {
failError(t, xerrors.Errorf("User %s already exists", testUsername))
}
if err != nil && !types.IsUserNotFoundError(err) {
failError(t, err)
}
if user.Type != types.IRODSUserRodsUser {
failError(t, xerrors.Errorf("User %s is not %s", testUsername, types.IRODSUserRodsUser))
}

err = fs.CreateUser(conn, testUsername, account.ClientZone, types.IRODSUserRodsUser)
failError(t, err)
Expand Down

0 comments on commit d9bcf81

Please sign in to comment.