优化代码

This commit is contained in:
GoEdgeLab
2023-08-08 15:12:28 +08:00
parent a7a170f9c6
commit 98eac40783
21 changed files with 61 additions and 78 deletions

View File

@@ -1,6 +1,9 @@
package serverconfigs
import "testing"
import (
"context"
"testing"
)
func TestServerConfig_Protocols(t *testing.T) {
{
@@ -65,7 +68,7 @@ func TestServerConfig_Protocols(t *testing.T) {
},
},
}}
err := server.Init(nil)
err := server.Init(context.TODO())
if err != nil {
t.Fatal(err)
}