修改测试用例

This commit is contained in:
lanrenwo 2022-10-13 13:57:40 +08:00 committed by GitHub
parent b8f0f4c618
commit ea5bc1088c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

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