Skip to content

Commit

Permalink
Feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
smaye81 committed Sep 4, 2024
1 parent 96f5bf0 commit 821a93b
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions cmd/demoserver/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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))
Expand Down

0 comments on commit 821a93b

Please sign in to comment.