Skip to content

Commit

Permalink
periodicity: fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rbeuque74 committed Jul 2, 2018
1 parent 225ab0f commit d4eb40c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions consumers/nsca/nsca_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ func (fc fakeChecker) ServiceName() string {
return "fake-service-name"
}

func (fc fakeChecker) Periodicity() *time.Duration {
return nil
}

func (fc fakeChecker) Run(ctx context.Context) plugins.Result {
fc.t.Fatal("fake checker should not run")
return plugins.Result{
Expand Down
1 change: 1 addition & 0 deletions instance.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ type Jagozzi struct {
}

// Load is loading configuration from file and returns a jagozzi configuration
// nolint: gocyclo
func Load(cfg config.Configuration) (*Jagozzi, error) {
y := Jagozzi{
cfg: cfg,
Expand Down
1 change: 1 addition & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import (
log "github.com/sirupsen/logrus"
)

// nolint: gochecknoglobals
var (
configFile = flag.String("cfg", "./jagozzi.yml", "path to config file")
logLevel = flag.String("level", "info", "verbosity level for application logs")
Expand Down

0 comments on commit d4eb40c

Please sign in to comment.