// If the Token Verification is not working, return error upon buffer creation
If the Token Verification is not working, return error upon buffer creation
// If the Token Verification is not working return error upon buffer creation
func TestAlgorandBuffer_IncorrectToken(t *testing.T) {
	c := client.CreateAlgorandClientMock("", "")
	c.SetError(true, (*client.AlgorandMock).Status)
	buffer, err := NewAlgorandBuffer(c, client.GeneratePrivateKey64())
	if err == nil {
		t.Errorf("failing token verification doesn't return error %s", err)
	}
	assert.NotEqual(t, models.Account{}, buffer.AccountCrypt)
}
func TestAlgorandBuffer_IncorrectToken ( t * testing . T ) { c := client . CreateAlgorandClientMock ( " " , " " ) c . SetError ( true , ( * client . AlgorandMock ) . Status ) buffer , err := NewAlgorandBuffer ( c , client . GeneratePrivateKey64 ( ) ) if err == nil { t . Errorf ( " " , err ) } assert . NotEqual ( t , models . Account { } , buffer . AccountCrypt ) }
If the Token Verification is not working, return error upon buffer creation
If the Token Verification is not working return error upon buffer creation
// buffer should still have created account