(ctx context.Context)
| 54 | } |
| 55 | |
| 56 | func runServers(ctx context.Context) <-chan error { |
| 57 | ch := make(chan error, 3) |
| 58 | go func() { |
| 59 | if err := server.Run(ctx, *network, *endpoint); err != nil { |
| 60 | ch <- fmt.Errorf("cannot run grpc service: %v", err) |
| 61 | } |
| 62 | }() |
| 63 | go func() { |
| 64 | if err := runGateway(ctx, ":8088"); err != nil { |
| 65 | ch <- fmt.Errorf("cannot run gateway service: %v", err) |
| 66 | } |
| 67 | }() |
| 68 | go func() { |
| 69 | if err := server.RunInProcessGateway(ctx, ":8089"); err != nil { |
| 70 | ch <- fmt.Errorf("cannot run in process gateway service: %v", err) |
| 71 | } |
| 72 | }() |
| 73 | return ch |
| 74 | } |
| 75 | |
| 76 | func TestMain(m *testing.M) { |
| 77 | flag.Parse() |
no test coverage detected