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"
"testing"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"github.com/filecoin-project/lotus/api"
"github.com/filecoin-project/lotus/build"
"github.com/stretchr/testify/assert"
)
type TestNode struct {
@ -62,9 +64,7 @@ func (ts *testSuite) testVersion(t *testing.T) {
if err != nil {
t.Fatal(err)
}
if v.Version != build.BuildVersion {
t.Error("Version didn't work properly")
}
require.Equal(t, v.Version, build.BuildVersion)
}
func (ts *testSuite) testID(t *testing.T) {

View File

@ -14,7 +14,7 @@ const (
func buildType() string {
switch BuildType {
case BuildDefault:
return "+default"
return ""
case BuildDebug:
return "+debug"
case Build2k: