From 87e288d13a7e00746a3a00416b670ce6a9b3e4e9 Mon Sep 17 00:00:00 2001 From: Antonio Murdaca Date: Thu, 6 Apr 2017 16:37:11 +0200 Subject: [PATCH] server: mock ExecResponse This patch prevents k8s's e2e_node tests from killing CRI-O (because of a panic in marshaling nil responses). This will ensure tests keep running and just logging the failure. Signed-off-by: Antonio Murdaca --- server/container_exec.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/container_exec.go b/server/container_exec.go index 9f1c400e..669df687 100644 --- a/server/container_exec.go +++ b/server/container_exec.go @@ -7,5 +7,5 @@ import ( // Exec prepares a streaming endpoint to execute a command in the container. func (s *Server) Exec(ctx context.Context, req *pb.ExecRequest) (*pb.ExecResponse, error) { - return nil, nil + return &pb.ExecResponse{}, nil }