Skip to content

Commit 1f3be0e

Browse files
Avoid mainnet network name in GetStakingSigner test
1 parent eca3432 commit 1f3be0e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

config/config_test.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ import (
2121
"github.com/ava-labs/avalanchego/ids"
2222
"github.com/ava-labs/avalanchego/snow/consensus/snowball"
2323
"github.com/ava-labs/avalanchego/subnets"
24+
"github.com/ava-labs/avalanchego/utils/constants"
2425
)
2526

2627
const chainConfigFilenameExtension = ".ex"
@@ -563,7 +564,6 @@ func TestGetStakingSigner(t *testing.T) {
563564

564565
tests := []struct {
565566
name string
566-
viperKeys string
567567
config map[string]any
568568
expectedSignerConfig any
569569
expectedErr error
@@ -622,6 +622,9 @@ func TestGetStakingSigner(t *testing.T) {
622622
require := require.New(t)
623623
v := setupViperFlags()
624624

625+
// Avoid using the mainnet network name by default because not all
626+
// builds support mainnet configurations.
627+
v.Set(NetworkNameKey, constants.FujiName)
625628
for key, value := range tt.config {
626629
v.Set(key, value)
627630
}

0 commit comments

Comments
 (0)