Skip to content

Commit

Permalink
Merge "[FAB-4898] Fix incorrect package and UT failure"
Browse files Browse the repository at this point in the history
  • Loading branch information
Srinivasan Muralidharan authored and Gerrit Code Review committed Jun 27, 2017
2 parents f6db2e5 + 6b6fc08 commit dc7c40b
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions orderer/metadata/metadata_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,14 @@ import (
"runtime"
"testing"

"github.com/hyperledger/fabric/common/tools/cryptogen/metadata"
common "github.com/hyperledger/fabric/common/metadata"
"github.com/hyperledger/fabric/orderer/metadata"
"github.com/stretchr/testify/assert"
)

func TestGetVersionInfo(t *testing.T) {
testVersion := "TestVersion"
metadata.Version = testVersion

expected := fmt.Sprintf("%s:\n Version: %s\n Go version: %s\n OS/Arch: %s",
metadata.ProgramName, testVersion, runtime.Version(),
metadata.ProgramName, common.Version, runtime.Version(),
fmt.Sprintf("%s/%s", runtime.GOOS, runtime.GOARCH))
assert.Equal(t, expected, metadata.GetVersionInfo())
}

0 comments on commit dc7c40b

Please sign in to comment.