Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] eventmesh-sdk-go test error #2855

Closed
2 tasks done
jonyangx opened this issue Jan 8, 2023 · 0 comments · Fixed by #2857
Closed
2 tasks done

[Bug] eventmesh-sdk-go test error #2855

jonyangx opened this issue Jan 8, 2023 · 0 comments · Fixed by #2857
Assignees
Labels
bug Something isn't working
Milestone

Comments

@jonyangx
Copy link
Contributor

jonyangx commented Jan 8, 2023

Search before asking

  • I had searched in the issues and found no similar issues.

Environment

Mac

EventMesh version

master

What happened

? github.com/apache/incubator-eventmesh/eventmesh-sdk-go/common [no test files]

github.com/apache/incubator-eventmesh/eventmesh-sdk-go/common/id [github.com/apache/incubator-eventmesh/eventmesh-sdk-go/common/id.test]

common/id/id_snake_test.go:47:5: undefined: So
common/id/id_snake_test.go:47:13: undefined: ShouldEqual
common/id/id_snake_test.go:83:5: undefined: So
common/id/id_snake_test.go:83:13: undefined: ShouldEqual
FAIL github.com/apache/incubator-eventmesh/eventmesh-sdk-go/common/id [build failed]
? github.com/apache/incubator-eventmesh/eventmesh-sdk-go/common/protocol [no test files]
? github.com/apache/incubator-eventmesh/eventmesh-sdk-go/common/protocol/http/body [no test files]
? github.com/apache/incubator-eventmesh/eventmesh-sdk-go/common/protocol/http/body/client [no test files]
? github.com/apache/incubator-eventmesh/eventmesh-sdk-go/common/protocol/http/common [no test files]
? github.com/apache/incubator-eventmesh/eventmesh-sdk-go/common/protocol/http/message [no test files]
? github.com/apache/incubator-eventmesh/eventmesh-sdk-go/common/protocol/tcp [no test files]
? github.com/apache/incubator-eventmesh/eventmesh-sdk-go/common/protocol/tcp/codec [no test files]
ok github.com/apache/incubator-eventmesh/eventmesh-sdk-go/common/seq 1.060s
ok github.com/apache/incubator-eventmesh/eventmesh-sdk-go/common/utils 0.580s
? github.com/apache/incubator-eventmesh/eventmesh-sdk-go/examples/grpc/consumer/asyncsub[no test files]
? github.com/apache/incubator-eventmesh/eventmesh-sdk-go/examples/grpc/consumer/boradcast[no test files]
? github.com/apache/incubator-eventmesh/eventmesh-sdk-go/examples/grpc/consumer/broadcast[no test files]
? github.com/apache/incubator-eventmesh/eventmesh-sdk-go/examples/grpc/consumer/rr [no test files]
? github.com/apache/incubator-eventmesh/eventmesh-sdk-go/examples/grpc/consumer/stream [no test files]
? github.com/apache/incubator-eventmesh/eventmesh-sdk-go/examples/grpc/producer/bp [no test files]
? github.com/apache/incubator-eventmesh/eventmesh-sdk-go/examples/grpc/producer/publish [no test files]
? github.com/apache/incubator-eventmesh/eventmesh-sdk-go/examples/grpc/producer/rr [no test files]
? github.com/apache/incubator-eventmesh/eventmesh-sdk-go/examples/http [no test files]
? github.com/apache/incubator-eventmesh/eventmesh-sdk-go/examples/tcp [no test files]
2023-01-08 10:38:30.327 INFO grpc/client.go:83 success make grpc conn with:1.1.1.1:0
2023-01-08 10:38:30.328 INFO grpc/client.go:83 success make grpc conn with:101.43.84.47:10205
2023-01-08 10:38:30.328 INFO grpc/client.go:177 close grpc client
2023-01-08 10:38:30.328 INFO grpc/producer.go:51 close eventmesh producer
2023-01-08 10:38:30.337 INFO grpc/client.go:197 success close grpc client
--- FAIL: Test_newEventMeshGRPCClient (0.01s)
--- FAIL: Test_newEventMeshGRPCClient/producer_wrong (0.00s)
client_test.go:79: newEventMeshGRPCClient() error = , wantErr true
2023-01-08 10:38:35.340 INFO grpc/client.go:83 success make grpc conn with:127.0.0.1:8086
2023-01-08 10:38:35.341 INFO grpc/fake_grpcserver.go:68 serve fake server on:map[eventmesh.common.protocol.grpc.ConsumerService:{[{subscribe false false} {unsubscribe false false} {subscribeStream true true}] eventmesh-client.proto} eventmesh.common.protocol.grpc.HeartbeatService:{[{heartbeat false false}] eventmesh-client.proto} eventmesh.common.protocol.grpc.PublisherService:{[{publish false false} {requestReply false false} {batchPublish false false}] eventmesh-client.proto}]
2023-01-08 10:38:35.344 INFO grpc/fake_grpcserver.go:178 fake-server, receive publish request:header:{} topic:"test-publish-topic"
2023-01-08 10:38:35.345 INFO grpc/client.go:177 close grpc client
2023-01-08 10:38:35.345 INFO grpc/producer.go:51 close eventmesh producer
2023-01-08 10:38:35.345 INFO grpc/client.go:197 success close grpc client
--- FAIL: Test_eventMeshGRPCClient_Publish (0.00s)
--- FAIL: Test_eventMeshGRPCClient_Publish/publish_with_timeout (0.00s)
panic: runtime error: invalid memory address or nil pointer dereference [recovered]
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x15d4ca7]

goroutine 39 [running]:
testing.tRunner.func1.2({0x1661960, 0x1c2ac30})
/usr/local/Cellar/go/1.19.4/libexec/src/testing/testing.go:1396 +0x24e
testing.tRunner.func1()
/usr/local/Cellar/go/1.19.4/libexec/src/testing/testing.go:1399 +0x39f
panic({0x1661960, 0x1c2ac30})
/usr/local/Cellar/go/1.19.4/libexec/src/runtime/panic.go:884 +0x212
github.com/apache/incubator-eventmesh/eventmesh-sdk-go/grpc.(*eventMeshProducer).Publish(0xc000118100?, {0x181d0a0?, 0xc00030e6f0?}, 0x106cd56?, {0x0?, 0x106e9a0?, 0xc00005ef10?})
/Users/apple/opensource/incubator-eventmesh/eventmesh-sdk-go/grpc/producer.go:57 +0x27
github.com/apache/incubator-eventmesh/eventmesh-sdk-go/grpc.(*eventMeshGRPCClient).Publish(0xc000118100, {0x181d068?, 0xc000128300?}, 0x17a00558a0ee?, {0x0, 0x0, 0x0})
/Users/apple/opensource/incubator-eventmesh/eventmesh-sdk-go/grpc/client.go:129 +0x6d
github.com/apache/incubator-eventmesh/eventmesh-sdk-go/grpc.Test_eventMeshGRPCClient_Publish.func4(0xc0003029c0)
/Users/apple/opensource/incubator-eventmesh/eventmesh-sdk-go/grpc/client_test.go:164 +0x55
testing.tRunner(0xc0003029c0, 0xc00031e120)
/usr/local/Cellar/go/1.19.4/libexec/src/testing/testing.go:1446 +0x10b
created by testing.(*T).Run
/usr/local/Cellar/go/1.19.4/libexec/src/testing/testing.go:1493 +0x35f
FAIL github.com/apache/incubator-eventmesh/eventmesh-sdk-go/grpc 5.589s
ok github.com/apache/incubator-eventmesh/eventmesh-sdk-go/grpc/conf 0.392s
ok github.com/apache/incubator-eventmesh/eventmesh-sdk-go/grpc/loadbalancer 0.483s
? github.com/apache/incubator-eventmesh/eventmesh-sdk-go/grpc/proto [no test files]
? github.com/apache/incubator-eventmesh/eventmesh-sdk-go/http [no test files]
? github.com/apache/incubator-eventmesh/eventmesh-sdk-go/http/conf [no test files]
? github.com/apache/incubator-eventmesh/eventmesh-sdk-go/http/constants [no test files]
ok github.com/apache/incubator-eventmesh/eventmesh-sdk-go/http/consumer 0.597s
? github.com/apache/incubator-eventmesh/eventmesh-sdk-go/http/model [no test files]
ok github.com/apache/incubator-eventmesh/eventmesh-sdk-go/http/producer 0.729s
ok github.com/apache/incubator-eventmesh/eventmesh-sdk-go/http/selector 0.571s
? github.com/apache/incubator-eventmesh/eventmesh-sdk-go/http/utils [no test files]
? github.com/apache/incubator-eventmesh/eventmesh-sdk-go/log [no test files]
? github.com/apache/incubator-eventmesh/eventmesh-sdk-go/tcp [no test files]
? github.com/apache/incubator-eventmesh/eventmesh-sdk-go/tcp/common [no test files]
? github.com/apache/incubator-eventmesh/eventmesh-sdk-go/tcp/conf [no test files]
? github.com/apache/incubator-eventmesh/eventmesh-sdk-go/tcp/utils [no test files]
FAIL

How to reproduce

go test ./...

Debug logs

No response

Are you willing to submit PR?

  • Yes I am willing to submit a PR!
@jonyangx jonyangx added the bug Something isn't working label Jan 8, 2023
walleliu1016 added a commit that referenced this issue Jan 8, 2023
[ISSUE #2855] eventmesh-sdk-go test error
@xwm1992 xwm1992 closed this as completed Jan 9, 2023
@xwm1992 xwm1992 added this to the 1.8.0 milestone Jan 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants