INNER CODE UNIT · Go
ok
yahoo/vssh · client_test.go:244
_, ok = <-respChan
if !ok {
t.Fatal("expect to get true but got", ok)
}
client, ok := vs.clients.get(testSrvAddr)
if !ok {
t.Error("expect test-client but not exist")
}
// persistent connection test
err = client.client.Close()
if err != nil {
t.Error("unexpected error as client should be open")
}
// wrong query
_, err = vs.RunWithLabel(ctx, "ping", "POP=ORD", timeout)