Skip to content

Commit

Permalink
edit: edit server_test.go
Browse files Browse the repository at this point in the history
修改因代码检查出现的问题
  • Loading branch information
Zherphy committed Dec 12, 2024
1 parent f7b19d0 commit c468ced
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ func Test_server_dealWithAuthError(t *testing.T) {
validatecfg.passwordRegexp, _ = regexp.Compile(`^[a-zA-Z0-9!@_#$%^&*()-=+,?.,]*$`)
validatecfg.usernameRegexp, _ = regexp.Compile(`^[a-zA-Z]([-_.]?[a-zA-Z0-9]+)*$`)
username := "user"
password := "wrong_pwd"
password := ""
authString := fmt.Sprintf("%s:%s", username, password)
encodedAuth := base64.StdEncoding.EncodeToString([]byte(authString))
req := httptest.NewRequest(http.MethodGet, batchUrlPath, nil)
Expand Down

0 comments on commit c468ced

Please sign in to comment.