mirror of
https://github.com/filecoin-project/lotus.git
synced 2025-08-24 01:08:42 +08:00

Default `address.CurrentNetwork` was changed in an upstream dependency. Update the build constants for non-mainnet to explicitly set it to `Testnet`. Add tests to assert it.
17 lines
272 B
Go
17 lines
272 B
Go
//go:build debug || 2k
|
|
// +build debug 2k
|
|
|
|
package buildconstants
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/require"
|
|
|
|
"github.com/filecoin-project/go-address"
|
|
)
|
|
|
|
func Test_NetworkName(t *testing.T) {
|
|
require.Equal(t, address.CurrentNetwork, address.Testnet)
|
|
}
|