mirror of
https://github.com/TeaOSLab/EdgeNode.git
synced 2025-11-29 03:30:24 +08:00
[反向代理]实验性添加TOA支持
This commit is contained in:
17
internal/nodes/toa_manager_test.go
Normal file
17
internal/nodes/toa_manager_test.go
Normal file
@@ -0,0 +1,17 @@
|
||||
package nodes
|
||||
|
||||
import (
|
||||
"github.com/TeaOSLab/EdgeCommon/pkg/nodeconfigs"
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestTOAManager_Run(t *testing.T) {
|
||||
manager := NewTOAManager()
|
||||
err := manager.Run(&nodeconfigs.TOAConfig{
|
||||
IsOn: true,
|
||||
})
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
t.Log("ok")
|
||||
}
|
||||
Reference in New Issue
Block a user