mirror of https://github.com/bjdgyc/anylink.git
修改测试用例
This commit is contained in:
parent
b8f0f4c618
commit
ea5bc1088c
|
@ -36,7 +36,9 @@ func TestGetGroupNames(t *testing.T) {
|
|||
ast.Nil(err)
|
||||
g5 := Group{Name: "g5", ClientDns: []ValData{{Val: "114.114.114.114"}}, DsIncludeDomains: "baidu.com,163.com"}
|
||||
err = SetGroup(&g5)
|
||||
ast.Nil(err)
|
||||
if ast.NotNil(err) {
|
||||
ast.Equal("默认路由, 不允许设置\"包含域名\", 请重新配置", err.Error())
|
||||
}
|
||||
g6 := Group{Name: "g6", ClientDns: []ValData{{Val: "114.114.114.114"}}, DsExcludeDomains: "com.cn,qq.com"}
|
||||
err = SetGroup(&g6)
|
||||
ast.Nil(err)
|
||||
|
|
Loading…
Reference in New Issue