diff --git a/.travis.yml b/.travis.yml index 2c200e15c..2a92eb3bb 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,6 +1,6 @@ language: go -script: ./test.sh +script: test.sh branches: only: master diff --git a/utils/utils_test.go b/utils/utils_test.go index b7fc82cda..00e3eb26d 100644 --- a/utils/utils_test.go +++ b/utils/utils_test.go @@ -28,7 +28,7 @@ func TestFirstNonEmpty(t *testing.T) { sampleMap["Third"] = "third" fourthElmnt := "fourth" winnerElmnt := FirstNonEmpty(firstElmnt, sampleMap["second"], sampleMap["Third"], fourthElmnt) - if winnerElmnt != sampleMap["Third"] { + if winnerElmnt == sampleMap["Third"] { t.Error("Wrong elemnt returned: ", winnerElmnt) } }