Skip to content

Commit 5c61aa6

Browse files
committed
[FAB-7443] Use t.Name() to get test name
Change-Id: I9b796dc71d1325a196d42ca624bdfa7bc4726dd5 Signed-off-by: leeloodub <olena.pleshan@gmail.com>
1 parent e80be10 commit 5c61aa6

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

orderer/consensus/kafka/consenter_test.go

+1-2
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,5 @@ func tamperBytes(original []byte) []byte {
169169
}
170170

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

0 commit comments

Comments
 (0)