devinbost commented on issue #6031: [Issue 4175] [pulsar-function-go] (ongoing) Fixed gRPC file to contain service registration method URL: https://github.com/apache/pulsar/pull/6031#issuecomment-573341480 @wolfstudy Thanks for taking a look. If you clone the latest from my go-features branch on my devinbost/pulsar fork (to `/Users/[yourUserName]/github.com/apache/pulsar/`), then: `cd /Users/[yourUserName]/github.com/apache/pulsar/pulsar-function-go/pf` `go test` You should get this result: `OCPC-LM31977:pf dbost$ go test` > # github.com/apache/pulsar/pulsar-function-go/pf [github.com/apache/pulsar/pulsar-function-go/pf.test] > ./function.go:167:44: undefined: port > FAIL github.com/apache/pulsar/pulsar-function-go/pf [build failed] > OCPC-LM31977:pf dbost$ go test > --- FAIL: TestContext (0.00s) > context_test.go:38: > Error Trace: context_test.go:38 > Error: Not equal: > expected: []string{"topic-1", "topic-2"} > actual : []string(nil) > > Diff: > --- Expected > +++ Actual > @@ -1,5 +1,2 @@ > -([]string) (len=2) { > - (string) (len=7) "topic-1", > - (string) (len=7) "topic-2" > -} > +([]string) <nil> > > Test: TestContext > context_test.go:42: > Error Trace: context_test.go:42 > Error: Not equal: > expected: "topic-3" > actual : "persistent://public/default/topic-02" > > Diff: > --- Expected > +++ Actual > @@ -1 +1 @@ > -topic-3 > +persistent://public/default/topic-02 > Test: TestContext > 2020/01/11 11:16:50.741 log.go:76: [error] process function error:[function is nil] > > 2020/01/11 11:16:50.741 log.go:76: [error] process function error:[function kind struct is not func] > > 2020/01/11 11:16:50.741 log.go:76: [error] process function error:[functions may not take more than two arguments, but function takes 3] > > 2020/01/11 11:16:50.741 log.go:76: [error] process function error:[function takes two arguments, but the first is not Context. got string] > > 2020/01/11 11:16:50.741 log.go:76: [error] process function error:[function may not return more than two values] > > 2020/01/11 11:16:50.741 log.go:76: [error] process function error:[function returns two values, but the second does not implement error] > > 2020/01/11 11:16:50.742 log.go:76: [error] process function error:[function returns a single value, but it does not implement error] > > 2020/01/11 11:16:50.744 log.go:76: [error] process function error:[bad stuff] > > 2020/01/11 11:16:50.744 log.go:76: [error] process function error:[bad stuff] > > 2020/01/11 11:16:50.744 log.go:76: [error] process function error:[bad stuff] > > 2020/01/11 11:16:50.744 log.go:76: [error] process function error:[bad stuff] > > FAIL > exit status 1 > FAIL github.com/apache/pulsar/pulsar-function-go/pf 0.123s >
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services