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:
Hexxa 2021-01-30 22:03:59 +08:00 committed by GitHub
parent e87a342c93
commit ede6c239f0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
23 changed files with 81 additions and 296 deletions

View file

@ -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,

View file

@ -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": {

View file

@ -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": {

View file

@ -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 {