Expose token.T in json + fix issue with new auth protocol #55

Merged
dan merged 3 commits from tokensfix into master 2022-10-25 20:56:11 +00:00
1 changed files with 4 additions and 0 deletions
Showing only changes of commit 4129031391 - Show all commits

View File

@ -142,6 +142,10 @@ func connectclient(t *testing.T, client tapir.Service, key ed25519.PublicKey, gr
conn, _ := client.GetConnection(torProvider.GetTorV3Hostname(key))
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
var long [8195]byte
err := conn.Send(long[:])