From 4aa15d6a78533a8fcdf36c709420f4c94f700b2a Mon Sep 17 00:00:00 2001 From: Kleissner Date: Wed, 8 Dec 2021 04:19:04 +0100 Subject: [PATCH] Minor fix in test code --- blockchain/Test_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/blockchain/Test_test.go b/blockchain/Test_test.go index 0006d3b..3672a28 100644 --- a/blockchain/Test_test.go +++ b/blockchain/Test_test.go @@ -60,11 +60,11 @@ func TestBlockEncoding(t *testing.T) { case BlockRecordFile: printFile(record) - case BlockRecordProfile: - printProfileField(record) - + case []BlockRecordProfile: + for _, profileR := range record { + printProfileField(profileR) + } } - } }