From 821a93b8c38a4a3309e5fb463793aa0e90776c97 Mon Sep 17 00:00:00 2001 From: Steve Ayers Date: Wed, 4 Sep 2024 11:04:33 -0400 Subject: [PATCH] Feedback --- cmd/demoserver/main_test.go | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/cmd/demoserver/main_test.go b/cmd/demoserver/main_test.go index d643d2d..cd04264 100644 --- a/cmd/demoserver/main_test.go +++ b/cmd/demoserver/main_test.go @@ -75,11 +75,7 @@ func TestElizaServer(t *testing.T) { return err } } - err := stream.CloseRequest() - if err != nil { - return err - } - return nil + return stream.CloseRequest() }) grp.Go(func() error { for { @@ -90,11 +86,7 @@ func TestElizaServer(t *testing.T) { assert.NotEmpty(t, msg.GetSentence()) receivedValues = append(receivedValues, msg.GetSentence()) } - err := stream.CloseResponse() - if err != nil { - return err - } - return nil + return stream.CloseResponse() }) require.NoError(t, grp.Wait()) assert.Equal(t, len(receivedValues), len(sendValues))