Skip to content

Commit

Permalink
FIX lint
Browse files Browse the repository at this point in the history
  • Loading branch information
madebyrogal committed Jul 9, 2024
1 parent d3819ad commit 006edaa
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions internal/health/health_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import (
func TestServeHTTPUnavailable(t *testing.T) {
// given
checker := NewChecker(context.TODO(), &config.Config{}, nil)
expectedStatus := checker.getStatus()
expectedStatus := checker.GetStatus()

req, err := http.NewRequest("GET", "/", nil)
require.NoError(t, err)
Expand All @@ -29,7 +29,7 @@ func TestServeHTTPUnavailable(t *testing.T) {
assert.Equal(t, http.StatusServiceUnavailable, rr.Code)
assert.Equal(t, "application/json", rr.Header().Get("Content-Type"))

var resp status
var resp Status
err = json.Unmarshal(rr.Body.Bytes(), &resp)
require.NoError(t, err)

Expand All @@ -41,7 +41,7 @@ func TestServeHTTPOK(t *testing.T) {
// given
checker := NewChecker(context.TODO(), &config.Config{}, nil)
checker.MarkAsReady()
expectedStatus := checker.getStatus()
expectedStatus := checker.GetStatus()

req, err := http.NewRequest("GET", "/", nil)
require.NoError(t, err)
Expand All @@ -54,7 +54,7 @@ func TestServeHTTPOK(t *testing.T) {
assert.Equal(t, http.StatusOK, rr.Code)
assert.Equal(t, "application/json", rr.Header().Get("Content-Type"))

var resp status
var resp Status
err = json.Unmarshal(rr.Body.Bytes(), &resp)
require.NoError(t, err)

Expand Down
4 changes: 2 additions & 2 deletions internal/heartbeat/reporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ package heartbeat
import (
"context"

"github.com/kubeshop/botkube/internal/health"

"github.com/sirupsen/logrus"

"github.com/kubeshop/botkube/internal/health"
)

type DeploymentHeartbeatInput struct {
Expand Down

0 comments on commit 006edaa

Please sign in to comment.