Error on Non Auth
This commit is contained in:
parent
139a35c219
commit
4129031391
|
@ -142,6 +142,10 @@ func connectclient(t *testing.T, client tapir.Service, key ed25519.PublicKey, gr
|
||||||
conn, _ := client.GetConnection(torProvider.GetTorV3Hostname(key))
|
conn, _ := client.GetConnection(torProvider.GetTorV3Hostname(key))
|
||||||
log.Debugf("Client has Auth: %v", conn.HasCapability(applications.AuthCapability))
|
log.Debugf("Client has Auth: %v", conn.HasCapability(applications.AuthCapability))
|
||||||
|
|
||||||
|
if conn.HasCapability(applications.AuthCapability) == false {
|
||||||
|
t.Errorf("tapir auth failed")
|
||||||
|
}
|
||||||
|
|
||||||
// attempt to send a message that is too long
|
// attempt to send a message that is too long
|
||||||
var long [8195]byte
|
var long [8195]byte
|
||||||
err := conn.Send(long[:])
|
err := conn.Send(long[:])
|
||||||
|
|
Loading…
Reference in New Issue