INNER CODE UNIT · Go

resp

yahoo/vssh · client_test.go:177

	resp := <-respChan
	_, _, err := resp.GetText(vs)
	delta := time.Since(now)

	if err == nil || delta.Seconds() > 1.1 {
		t.Error("timeout failed")
	}
}

func TestGoroutineLeak(t *testing.T) {
	ctx, cancel := context.WithCancel(context.Background())
	defer cancel()

	config := GetConfigUserPass("vssh", "vssh")

	vs := New().StartWithContext(ctx)
	vs.AddClient(testSrvAddr, config, SetMaxSessions(1), DisableRequestPty())

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…