mirror of
https://github.com/TeaOSLab/EdgeCommon.git
synced 2026-01-06 03:46:17 +08:00
优化代码
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
package serverconfigs
|
||||
|
||||
import (
|
||||
"context"
|
||||
"github.com/TeaOSLab/EdgeCommon/pkg/serverconfigs/shared"
|
||||
"testing"
|
||||
)
|
||||
@@ -30,7 +31,7 @@ func TestReverseProxyConfig_Init(t *testing.T) {
|
||||
Addr: &NetworkAddressConfig{Host: "127.0.0.4"},
|
||||
IsOn: true,
|
||||
})
|
||||
err := config.Init(nil)
|
||||
err := config.Init(context.TODO())
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user