Commit e5b46d1c authored by Yacov Manevich's avatar Yacov Manevich Committed by Gerrit Code Review
Browse files

Merge "[FAB-5446] Fix orderer metadata local test"

parents 5d9c4fc7 7d59d5a7
......@@ -17,6 +17,13 @@ import (
)
func TestGetVersionInfo(t *testing.T) {
// This test would always fail for development versions because if
// common.Version is not set, the string returned is "development version"
// Set it here for this test to avoid this.
if common.Version == "" {
common.Version = "testVersion"
}
expected := fmt.Sprintf("%s:\n Version: %s\n Go version: %s\n OS/Arch: %s",
metadata.ProgramName, common.Version, runtime.Version(),
fmt.Sprintf("%s/%s", runtime.GOOS, runtime.GOARCH))
......
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