Skip to content

Commit

Permalink
altered to fix tests on CircleCl.
Browse files Browse the repository at this point in the history
  • Loading branch information
willfairwinds committed Jul 29, 2019
1 parent b55f471 commit c8c0e07
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/config/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import (
"io"
"log"
"net/http"
"regexp"
"testing"

"github.com/stretchr/testify/assert"
Expand Down Expand Up @@ -150,7 +151,8 @@ func TestConfigFromURL(t *testing.T) {
func TestConfigNoServerError(t *testing.T) {
var err error
_, err = ParseFile("http://localhost:8081/exampleURL")
assert.EqualError(t, err, "Get http://localhost:8081/exampleURL: dial tcp [::1]:8081: connect: connection refused")
assert.Error(t, err)
assert.Regexp(t, regexp.MustCompile("connection refused"), err.Error())
}

func testParsedConfig(t *testing.T, config *Configuration) {
Expand Down
1 change: 1 addition & 0 deletions pkg/validator/resources_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
adfsafdasfd

0 comments on commit c8c0e07

Please sign in to comment.