feat(gl): scaffold general ledger grpc service
This commit is contained in:
1 parent
1863de1f3b
commit
b1e0b01598
19 files changed
+3065
No files matched your search
@@ -0,0 +1,26 @@
|
||||
package grpcadapter
|
||||
|
||||
import (
|
||||
"context"
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
"gl/application/health"
|
||||
|
||||
"google.golang.org/grpc/test/bufconn"
|
||||
)
|
||||
|
||||
func TestRunStopsWhenContextIsCancelled(t *testing.T) {
|
||||
ctx, cancel := context.WithCancel(context.Background())
|
||||
cancel()
|
||||
|
||||
err := runWithListener(
|
||||
ctx,
|
||||
time.Second,
|
||||
bufconn.Listen(1024),
|
||||
NewHealthHandler(health.NewService(nil)),
|
||||
)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user