File tree 1 file changed +0
-8
lines changed 1 file changed +0
-8
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,6 @@ import (
13
13
"os/exec"
14
14
"path/filepath"
15
15
"strconv"
16
- "sync"
17
16
"testing"
18
17
"time"
19
18
@@ -233,10 +232,7 @@ func TestServerResponseTooLarge(t *testing.T) {
233
232
response .Keys = make ([]byte , maxAgentResponseBytes + 1 )
234
233
235
234
agent := NewClient (a )
236
- var wg sync.WaitGroup
237
- wg .Add (1 )
238
235
go func () {
239
- defer wg .Done ()
240
236
n , _ := b .Write (ssh .Marshal (response ))
241
237
if n < 4 {
242
238
t .Fatalf ("At least 4 bytes (the response size) should have been successfully written: %d < 4" , n )
@@ -249,10 +245,6 @@ func TestServerResponseTooLarge(t *testing.T) {
249
245
if err .Error () != "agent: client error: response too large" {
250
246
t .Fatal ("Did not get expected error result" )
251
247
}
252
- // We need to explicitly close the client connection or else the server-side write call might block waiting for
253
- // the client to consume the entire message (which it shouldn't)
254
- a .Close ()
255
- wg .Wait ()
256
248
}
257
249
258
250
func TestAuth (t * testing.T ) {
You can’t perform that action at this time.
0 commit comments