From c9607c280a2eb1ea86d656c8f3dc0277b4254d9a Mon Sep 17 00:00:00 2001 From: Adam Babik Date: Thu, 25 Jan 2024 08:32:40 +0100 Subject: [PATCH] Improve debuggability of TestRunnerServiceServerExecute --- internal/runnerv2service/service_execute_test.go | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/internal/runnerv2service/service_execute_test.go b/internal/runnerv2service/service_execute_test.go index f2404f47a..9eb2676fc 100644 --- a/internal/runnerv2service/service_execute_test.go +++ b/internal/runnerv2service/service_execute_test.go @@ -230,8 +230,6 @@ func TestRunnerServiceServerExecute_Input(t *testing.T) { _, client := testCreateRunnerServiceClient(t, lis) t.Run("ContinuousInput", func(t *testing.T) { - t.Parallel() - stream, err := client.Execute(context.Background()) require.NoError(t, err) @@ -268,8 +266,6 @@ func TestRunnerServiceServerExecute_Input(t *testing.T) { }) t.Run("SimulateCtrlC", func(t *testing.T) { - t.Parallel() - stream, err := client.Execute(context.Background()) require.NoError(t, err) @@ -314,8 +310,6 @@ func TestRunnerServiceServerExecute_Input(t *testing.T) { }) t.Run("CloseSendDirection", func(t *testing.T) { - t.Parallel() - stream, err := client.Execute(context.Background()) require.NoError(t, err) @@ -341,6 +335,7 @@ func TestRunnerServiceServerExecute_Input(t *testing.T) { result := <-execResult // TODO(adamb): This should be a specific gRPC error rather than Unknown. + require.NotNil(t, result.Err) assert.Contains(t, result.Err.Error(), "signal: interrupt") assert.Equal(t, 130, result.ExitCode) })