Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
andrii-codefresh committed Oct 20, 2023
1 parent 8ac7d17 commit 863b46b
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions server/application/application_event_reporter_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@ package application
import (
"context"
"encoding/json"
"github.com/ghodss/yaml"
"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
"testing"
"time"

"github.com/ghodss/yaml"
"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"

"google.golang.org/grpc"
"k8s.io/apimachinery/pkg/runtime"

Expand Down Expand Up @@ -59,7 +60,7 @@ func TestGetResourceEventPayload(t *testing.T) {
Message: "some message",
}

event, err := getResourceEventPayload(&app, &rs, &es, &actualState, &desiredState, &appTree, true, "", nil, &revisionMetadata, nil, common.LabelKeyAppInstance, argo.TrackingMethodLabel)
event, err := getResourceEventPayload(&app, &rs, &es, &actualState, &desiredState, &appTree, true, "", nil, &revisionMetadata, nil, common.LabelKeyAppInstance, argo.TrackingMethodLabel, nil)
assert.NoError(t, err)

var eventPayload events.EventPayload
Expand Down Expand Up @@ -95,7 +96,7 @@ func TestGetResourceEventPayload(t *testing.T) {
Message: "some message",
}

event, err := getResourceEventPayload(&app, &rs, &es, &actualState, &desiredState, &appTree, true, "", nil, &revisionMetadata, nil, common.LabelKeyAppInstance, argo.TrackingMethodLabel)
event, err := getResourceEventPayload(&app, &rs, &es, &actualState, &desiredState, &appTree, true, "", nil, &revisionMetadata, nil, common.LabelKeyAppInstance, argo.TrackingMethodLabel, nil)
assert.NoError(t, err)

var eventPayload events.EventPayload
Expand Down Expand Up @@ -374,7 +375,7 @@ func TestGetResourceEventPayloadWithoutRevision(t *testing.T) {
}
appTree := v1alpha1.ApplicationTree{}

_, err := getResourceEventPayload(&app, &rs, &es, &actualState, &desiredState, &appTree, true, "", nil, nil, nil, common.LabelKeyAppInstance, argo.TrackingMethodLabel)
_, err := getResourceEventPayload(&app, &rs, &es, &actualState, &desiredState, &appTree, true, "", nil, nil, nil, common.LabelKeyAppInstance, argo.TrackingMethodLabel, nil)
assert.NoError(t, err)

}
Expand Down

0 comments on commit 863b46b

Please sign in to comment.