Fix version test

This commit is contained in:
Łukasz Magiera 2020-06-01 21:11:37 +02:00
parent 64f4e80446
commit a49dc90386
2 changed files with 5 additions and 5 deletions

View File

@ -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) {

View File

@ -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: