mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-09 11:11:20 +00:00
3a09405bb7
* HTTP Beacon API: `/eth/v1/validator/contribution_and_proofs` * add comment to invalid test case * fix validation and test * review * in progress * implementation * remove test file * remove duplicate * tests * review * test fixes --------- Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com> Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
17 lines
348 B
Go
17 lines
348 B
Go
package shared
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/pkg/errors"
|
|
"github.com/prysmaticlabs/prysm/v4/testing/assert"
|
|
)
|
|
|
|
func TestDecodeError(t *testing.T) {
|
|
e := errors.New("not a number")
|
|
de := NewDecodeError(e, "Z")
|
|
de = NewDecodeError(de, "Y")
|
|
de = NewDecodeError(de, "X")
|
|
assert.Equal(t, "could not decode X.Y.Z: not a number", de.Error())
|
|
}
|