From eabb2d30f37d5aef606a4442f5cecdd88227c080 Mon Sep 17 00:00:00 2001 From: Shitaibin Date: Wed, 5 Jun 2019 12:43:04 +0800 Subject: [PATCH] core: replace fmt.* to t.* or b.* in tests. fmt.Printf -> t.Logf or b.Logf --- core/rawdb/freezer_table_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/rawdb/freezer_table_test.go b/core/rawdb/freezer_table_test.go index e63fb63a3c..32ffb481e9 100644 --- a/core/rawdb/freezer_table_test.go +++ b/core/rawdb/freezer_table_test.go @@ -46,7 +46,7 @@ func print(t *testing.T, f *freezerTable, item uint64) { if err != nil { t.Fatal(err) } - fmt.Printf("db[%d] = %x\n", item, a) + t.Logf("db[%d] = %x\n", item, a) } // TestFreezerBasics test initializing a freezertable from scratch, writing to the table,