Skip to content

Commit

Permalink
caduceus: increase test coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
githubsands committed Mar 12, 2019
1 parent 73afe01 commit e957bfa
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/caduceus/primaryHandler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,17 @@ import (

func TestNewPrimaryHandler(t *testing.T) {
var (
l = logging.New(nil)
viper = viper.New()
sw = &ServerHandler{}
l = logging.New(nil)
viper = viper.New()
sw = &ServerHandler{}
expectedAuthHeader = []string{"Basic xxxxxxx"}
)

viper.Set("authHeader", expectedAuthHeader)
if _, err := NewPrimaryHandler(l, viper, sw); err != nil {
t.Fatalf("NewPrimaryHandler failed: %v", err)
}

}

func TestGetValidator(t *testing.T) {
Expand Down

0 comments on commit e957bfa

Please sign in to comment.