From 4772b7db77cd14017126832881b878b9874d3c09 Mon Sep 17 00:00:00 2001 From: niebayes Date: Sat, 3 Sep 2022 19:40:21 +0800 Subject: [PATCH] Update test_test.go Update error info. Without `client`, the error info is something like ` missing element ...` which seems to report that there're missing element. --- kv/test_raftstore/test_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kv/test_raftstore/test_test.go b/kv/test_raftstore/test_test.go index 6dcc9ff83..b71c4be96 100644 --- a/kv/test_raftstore/test_test.go +++ b/kv/test_raftstore/test_test.go @@ -60,7 +60,7 @@ func checkClntAppends(t *testing.T, clnt int, v string, count int) { wanted := "x " + strconv.Itoa(clnt) + " " + strconv.Itoa(j) + " y" off := strings.Index(v, wanted) if off < 0 { - t.Fatalf("%v missing element %v in Append result %v", clnt, wanted, v) + t.Fatalf("client %v missing element %v in Append result %v", clnt, wanted, v) } off1 := strings.LastIndex(v, wanted) if off1 != off {