Skip to content

Commit

Permalink
chore: fix issues introduced from lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
nvloff-f3 committed Mar 6, 2024
1 parent fb57765 commit 5b9e761
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion internal/run/prom_push_gw_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ func (f *FakePrometheus) ServeHTTP(response http.ResponseWriter, request *http.R
}

if !ok {
f.metricFamilies.Store(metricFamily.GetName, metricFamily)
f.metricFamilies.Store(metricFamily.GetName(), metricFamily)
} else {
value, ok := mf.(*io_prometheus_client.MetricFamily)
if !ok {
Expand Down
2 changes: 1 addition & 1 deletion internal/run/run_stage_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ func (s *RunTestStage) a_test_scenario_that_fails_intermittently() *RunTestStage
atomic.AddInt32(s.iterationTeardownCount, 1)
})
count := atomic.AddInt32(&s.runCount, 1)
t.Require().Equal(0, count%2)
t.Require().Equal(int32(0), count%2)
}
})
return s
Expand Down
6 changes: 5 additions & 1 deletion pkg/f1/f1_scenarios.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,11 @@ func (f *F1) ExecuteWithArgs(args []string) error {
rootCmd.SetArgs(args)
err := rootCmd.Execute()
writeProfiles(f.profiling)
return fmt.Errorf("command execute: %w", err)
if err != nil {
return fmt.Errorf("command execute: %w", err)
}

return nil
}

// Returns the list of registered scenarios.
Expand Down

0 comments on commit 5b9e761

Please sign in to comment.