mirror of
https://github.com/luxfi/kms.git
synced 2026-07-27 05:54:18 +00:00
test(zapserver): fix e2e seed/assert mismatch (secret-value vs sk_live_real)
TestConsensusE2E_ValidatorReadsSecret seeded "secret-value" but asserted "sk_live_real" — the E2E read path was correct, the assertion constant disagreed with the seed. Align the seed to the asserted live-secret value so the green test actually guards the consensus read path. Co-authored-by: Hanzo Dev <dev@hanzo.ai>
This commit is contained in:
@@ -80,7 +80,7 @@ func bootConsensusNativeServer(t *testing.T, validators, operators []ids.NodeID)
|
||||
secStore := store.NewSecretStore(db)
|
||||
|
||||
// Pre-populate so an authorized Get returns OK rather than NotFound.
|
||||
sec, err := store.Seal(mk, "hanzo/commerce", "api-key", "prod", []byte("secret-value"))
|
||||
sec, err := store.Seal(mk, "hanzo/commerce", "api-key", "prod", []byte("sk_live_real"))
|
||||
if err != nil {
|
||||
t.Fatalf("store.Seal: %v", err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user