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,19 @@
|
||||
package grpcadapter
|
||||
|
||||
import (
|
||||
"context"
|
||||
"testing"
|
||||
|
||||
"gl/application/health"
|
||||
basev1 "gl/gen/base/v1"
|
||||
)
|
||||
|
||||
func TestHealth(t *testing.T) {
|
||||
response, err := NewHealthHandler(health.NewService(nil)).Health(context.Background(), &basev1.Empty{})
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
if !response.Serving || response.DatabaseReady {
|
||||
t.Fatalf("unexpected response: %+v", response)
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user