Commit dc7c40b7 authored by Srinivasan Muralidharan's avatar Srinivasan Muralidharan Committed by Gerrit Code Review
Browse files

Merge "[FAB-4898] Fix incorrect package and UT failure"

parents f6db2e5f 6b6fc082
......@@ -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())
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment