Skip to content

Commit

Permalink
handle error
Browse files Browse the repository at this point in the history
  • Loading branch information
Maliz committed Feb 10, 2023
1 parent 9f185ce commit f17fd55
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ func TestTroubleshootUpstream_Success(t *testing.T) {
// wait for envoy
time.Sleep(5 * time.Second)
_, outputReader, err := clientSidecar.Exec(context.Background(), []string{"consul", "troubleshoot", "upstreams", "-envoy-admin-endpoint", fmt.Sprintf("localhost:%v", port)})
require.NoError(t, err)
buf, err := io.ReadAll(outputReader)
require.NoError(t, err)
require.Contains(t, string(buf), libservice.StaticServerServiceName)
Expand Down

0 comments on commit f17fd55

Please sign in to comment.