Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
Signed-off-by: Song Gao <disxiaofei@163.com>
  • Loading branch information
Yisaer committed Dec 19, 2024
1 parent 15010f5 commit 94b19be
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 9 deletions.
4 changes: 1 addition & 3 deletions internal/converter/json/converter_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"

"github.com/lf-edge/ekuiper/v2/internal/conf"
"github.com/lf-edge/ekuiper/v2/internal/topo/context"
"github.com/lf-edge/ekuiper/v2/pkg/ast"
mockContext "github.com/lf-edge/ekuiper/v2/pkg/mock/context"
Expand Down Expand Up @@ -770,11 +769,10 @@ func TestDecodeField(t *testing.T) {
}

func TestIssue3441(t *testing.T) {
conf.IsTesting = false
originSchema := map[string]*ast.JsonStreamField{
"id": nil,
}
f := NewFastJsonConverter(originSchema, nil)
f := NewFastJsonConverter(originSchema, map[string]any{"useInt64ForWholeNumber": true})
data := `{"id":1795292668348461056}`
ctx := mockContext.NewMockContext("test", "op1")
m, err := f.Decode(ctx, []byte(data))
Expand Down
1 change: 0 additions & 1 deletion internal/io/memory/lookupsource_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,6 @@ func TestUpdateLookup(t *testing.T) {
}

func TestLookup(t *testing.T) {
conf.IsTesting = true
contextLogger := conf.Log.WithField("rule", "test2")
ctx := context.WithValue(context.Background(), context.LoggerKey, contextLogger)
ls := GetLookupSource().(api.LookupSource)
Expand Down
2 changes: 0 additions & 2 deletions internal/topo/node/decode_op_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"

"github.com/lf-edge/ekuiper/v2/internal/conf"
"github.com/lf-edge/ekuiper/v2/internal/pkg/def"
"github.com/lf-edge/ekuiper/v2/internal/xsql"
"github.com/lf-edge/ekuiper/v2/pkg/ast"
Expand Down Expand Up @@ -393,7 +392,6 @@ func TestPayloadDecodeWithSchema(t *testing.T) {
}

func TestPayloadBatchDecodeWithSchema(t *testing.T) {
conf.IsTesting = true
tests := []struct {
name string
input any
Expand Down
3 changes: 0 additions & 3 deletions internal/topo/node/lookup_node_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ import (
"github.com/lf-edge/ekuiper/contract/v2/api"
"github.com/stretchr/testify/assert"

"github.com/lf-edge/ekuiper/v2/internal/conf"
"github.com/lf-edge/ekuiper/v2/internal/pkg/def"
"github.com/lf-edge/ekuiper/v2/internal/topo/lookup"
"github.com/lf-edge/ekuiper/v2/internal/xsql"
Expand Down Expand Up @@ -342,7 +341,6 @@ func TestLookup(t *testing.T) {
}

func TestLookupInner(t *testing.T) {
conf.IsTesting = true
tests := []struct {
name string
input any
Expand Down Expand Up @@ -610,7 +608,6 @@ func TestLookupInner(t *testing.T) {
}

func TestLookupPayload(t *testing.T) {
conf.IsTesting = true
tests := []struct {
name string
input any
Expand Down

0 comments on commit 94b19be

Please sign in to comment.