Skip to content

Commit

Permalink
fix unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
rolandosborne committed Jun 8, 2024
1 parent 3b35640 commit 2e6b892
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions net/server/internal/testUtil.go
Original file line number Diff line number Diff line change
Expand Up @@ -659,6 +659,13 @@ func addTestAccount(username string) (guid string, token string, err error) {
}
token = access.AppToken

// set to searchable
searchable := false
if r, w, err = NewRequest("PUT", "/account/searchable?agent="+token, &searchable); err != nil {
return
}
SetAccountSearchable(w, r);

// authorize claim
if r, w, err = NewRequest("PUT", "/authorize?agent="+token, "1234abcd"); err != nil {
return
Expand Down

0 comments on commit 2e6b892

Please sign in to comment.