Skip to content

Commit

Permalink
refine test code
Browse files Browse the repository at this point in the history
Signed-off-by: crazycs520 <[email protected]>
  • Loading branch information
crazycs520 committed Apr 1, 2024
1 parent 88eb5b2 commit 958fe70
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions internal/client/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -931,7 +931,6 @@ func TestRandomRestartStoreAndForwarding(t *testing.T) {

conn, err := client1.getConnArray(addr1, true)
assert.Nil(t, err)
count := int64(0)
for j := 0; j < concurrency; j++ {
wg.Add(1)
go func() {
Expand All @@ -946,7 +945,6 @@ func TestRandomRestartStoreAndForwarding(t *testing.T) {
forwardedHost = addr2
}
_, err := sendBatchRequest(context.Background(), addr1, forwardedHost, conn.batchConn, req, time.Millisecond*50, 0)
atomic.AddInt64(&count, 1)
if err == nil ||
err.Error() == "EOF" ||
err.Error() == "rpc error: code = Unavailable desc = error reading from server: EOF" ||
Expand Down

0 comments on commit 958fe70

Please sign in to comment.