criRuntimeService returns a CRI runtime client based on the grpc address.
(t *testing.T)
| 891 | |
| 892 | // criRuntimeService returns a CRI runtime client based on the grpc address. |
| 893 | func (p *ctrdProc) criRuntimeService(t *testing.T) *remote.RuntimeService { |
| 894 | service, err := remote.NewRuntimeService(p.grpcAddress(), 1*time.Minute) |
| 895 | require.NoError(t, err) |
| 896 | t.Cleanup(func() { |
| 897 | assert.NoError(t, service.Close(context.Background())) |
| 898 | }) |
| 899 | return service |
| 900 | } |
| 901 | |
| 902 | // criImageService returns a CRI image client based on the grpc address. |
| 903 | func (p *ctrdProc) criImageService(t *testing.T) *remote.ImageService { |
no test coverage detected