Files
proto/p/warp/signer_test.go
zeekay f480e48e39 run on the native fleet
Adds .hanzo/workflows/cicd.yml calling the canonical pipeline and drops the
GitHub-hosted workflows it replaces. Lands here because this is where the repo
is written — git.hanzo.ai is upstream and github.com is its push mirror, so the
same change made on github.com never reaches the runner fleet.
2026-08-20 20:20:25 -07:00

32 lines
710 B
Go

// Copyright (C) 2019-2025, Lux Industries Inc. All rights reserved.
// See the file LICENSE for licensing terms.
package warp_test
import (
"testing"
"github.com/stretchr/testify/require"
"github.com/luxfi/constants"
"github.com/luxfi/crypto/bls/signer/localsigner"
"github.com/luxfi/ids"
"github.com/luxfi/proto/p/warp"
"github.com/luxfi/proto/p/warp/signertest"
)
func TestSigner(t *testing.T) {
for name, test := range signertest.SignerTests {
t.Run(name, func(t *testing.T) {
sk, err := localsigner.New()
require.NoError(t, err)
chainID := ids.GenerateTestID()
s := warp.NewSigner(sk, constants.UnitTestID, chainID)
test(t, s, sk, constants.UnitTestID, chainID)
})
}
}