Fix version test
This commit is contained in:
parent
64f4e80446
commit
a49dc90386
@ -4,9 +4,11 @@ import (
|
|||||||
"context"
|
"context"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
|
"github.com/stretchr/testify/assert"
|
||||||
|
"github.com/stretchr/testify/require"
|
||||||
|
|
||||||
"github.com/filecoin-project/lotus/api"
|
"github.com/filecoin-project/lotus/api"
|
||||||
"github.com/filecoin-project/lotus/build"
|
"github.com/filecoin-project/lotus/build"
|
||||||
"github.com/stretchr/testify/assert"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
type TestNode struct {
|
type TestNode struct {
|
||||||
@ -62,9 +64,7 @@ func (ts *testSuite) testVersion(t *testing.T) {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatal(err)
|
t.Fatal(err)
|
||||||
}
|
}
|
||||||
if v.Version != build.BuildVersion {
|
require.Equal(t, v.Version, build.BuildVersion)
|
||||||
t.Error("Version didn't work properly")
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (ts *testSuite) testID(t *testing.T) {
|
func (ts *testSuite) testID(t *testing.T) {
|
||||||
|
@ -14,7 +14,7 @@ const (
|
|||||||
func buildType() string {
|
func buildType() string {
|
||||||
switch BuildType {
|
switch BuildType {
|
||||||
case BuildDefault:
|
case BuildDefault:
|
||||||
return "+default"
|
return ""
|
||||||
case BuildDebug:
|
case BuildDebug:
|
||||||
return "+debug"
|
return "+debug"
|
||||||
case Build2k:
|
case Build2k:
|
||||||
|
Loading…
Reference in New Issue
Block a user