Skip to content

Commit

Permalink
refactor: lint
Browse files Browse the repository at this point in the history
Signed-off-by: DenChenn <[email protected]>
  • Loading branch information
DenChenn committed Oct 23, 2024
1 parent 734768d commit 49ccd36
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 9 deletions.
6 changes: 4 additions & 2 deletions flytepropeller/pkg/apis/flyteworkflow/v1alpha1/gate_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,14 @@ package v1alpha1

import (
"bytes"
"github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core"
"testing"

"github.com/golang/protobuf/jsonpb"
"github.com/golang/protobuf/proto"
"github.com/stretchr/testify/assert"
"google.golang.org/protobuf/types/known/durationpb"
"testing"

"github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core"
)

func mockMarshalPbToBytes(msg proto.Message) ([]byte, error) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
package v1alpha1

import (
"github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core"
"github.com/stretchr/testify/assert"
"testing"

"github.com/stretchr/testify/assert"

"github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core"
)

func TestIdentifierJSONMarshalling(t *testing.T) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
package v1alpha1

import (
"testing"

"github.com/stretchr/testify/assert"
"k8s.io/apimachinery/pkg/runtime"
"testing"
)

func TestKind(t *testing.T) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
package v1alpha1

import (
"github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core"
"github.com/stretchr/testify/assert"
"testing"

"github.com/stretchr/testify/assert"

"github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core"
)

func TestWorkflowNodeSpec_GetLaunchPlanRefID(t *testing.T) {
Expand All @@ -22,9 +24,9 @@ func TestWorkflowNodeSpec_GetLaunchPlanRefID(t *testing.T) {
}

func TestWorkflowNodeSpec_GetSubWorkflowRef(t *testing.T) {
workflowId := "TestWorkflowID"
workflowID := "TestWorkflowID"
wfNodeSpec := &WorkflowNodeSpec{
SubWorkflowReference: &workflowId,
SubWorkflowReference: &workflowID,
}

nilWfNodeSpec := &WorkflowNodeSpec{}
Expand Down

0 comments on commit 49ccd36

Please sign in to comment.