config/source/cli: fix tests (#1179)

* config/source/cli: fix tests
* skip mdns test in travis

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
2020-02-08 02:45:32 +03:00
committed by GitHub
parent 0bf6c9fc08
commit 67acd9288b
3 changed files with 13 additions and 1 deletions

View File

@@ -7,6 +7,11 @@ import (
)
func TestMDNS(t *testing.T) {
// skip test in travis because of sendto: operation not permitted error
if travis := os.Getenv("TRAVIS"); travis == "true" {
t.Skip()
}
testData := []*Service{
{
Name: "test1",

View File

@@ -7,6 +7,10 @@ import (
)
func TestWatcher(t *testing.T) {
if travis := os.Getenv("TRAVIS"); travis == "true" {
t.Skip()
}
testData := []*Service{
{
Name: "test1",