chore(ci/cd): refine scripts and docs (#36)
* chore(ci/cd): refine scripts and docs * text(server): fix incorrect server port
This commit is contained in:
parent
e87a342c93
commit
ede6c239f0
23 changed files with 81 additions and 296 deletions
|
@ -62,7 +62,7 @@ func DefaultConfig() (string, error) {
|
|||
Server: &ServerCfg{
|
||||
Debug: false,
|
||||
Host: "0.0.0.0",
|
||||
Port: 8888,
|
||||
Port: 8686,
|
||||
ReadTimeout: 2000,
|
||||
WriteTimeout: 1000 * 3600 * 24, // 1 day
|
||||
MaxHeaderBytes: 512,
|
||||
|
|
|
@ -18,7 +18,7 @@ import (
|
|||
)
|
||||
|
||||
func TestFileHandlers(t *testing.T) {
|
||||
addr := "http://127.0.0.1:8888"
|
||||
addr := "http://127.0.0.1:8686"
|
||||
root := "testData"
|
||||
config := `{
|
||||
"users": {
|
||||
|
|
|
@ -9,7 +9,7 @@ import (
|
|||
)
|
||||
|
||||
func TestSingleUserHandlers(t *testing.T) {
|
||||
addr := "http://127.0.0.1:8888"
|
||||
addr := "http://127.0.0.1:8686"
|
||||
root := "testData"
|
||||
config := `{
|
||||
"users": {
|
||||
|
|
|
@ -32,7 +32,7 @@ func startTestServer(config string) *Server {
|
|||
}
|
||||
|
||||
func waitForReady(addr string) bool {
|
||||
retry := 10
|
||||
retry := 20
|
||||
setCl := client.NewSettingsClient(addr)
|
||||
|
||||
for retry > 0 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue