Skip to content

Commit

Permalink
Merge "[FAB-7443] Use t.Name() to get test name"
Browse files Browse the repository at this point in the history
  • Loading branch information
yacovm authored and Gerrit Code Review committed Jun 15, 2018
2 parents 7791304 + 5c61aa6 commit e11f49a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions orderer/consensus/kafka/consenter_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,5 @@ func tamperBytes(original []byte) []byte {
}

func channelNameForTest(t *testing.T) string {
name := strings.Split(fmt.Sprint(t), " ")[18] // w/golang 1.8, use t.Name()
return fmt.Sprintf("%s.channel", strings.Replace(strings.ToLower(name), "/", ".", -1))
return fmt.Sprintf("%s.channel", strings.Replace(strings.ToLower(t.Name()), "/", ".", -1))
}

0 comments on commit e11f49a

Please sign in to comment.