From 2fae323827d11aed83b0a20b3c4cd28836f453a1 Mon Sep 17 00:00:00 2001 From: Roman Zajic Date: Fri, 20 Oct 2023 13:58:11 +0800 Subject: [PATCH] Update waku/v2/protocol/filter/filter_test.go MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Use fmt.Sprintf() instead of "+" for more beauty and speed Co-authored-by: richΛrd --- waku/v2/protocol/filter/filter_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/waku/v2/protocol/filter/filter_test.go b/waku/v2/protocol/filter/filter_test.go index 00cf576e1..ace878e72 100644 --- a/waku/v2/protocol/filter/filter_test.go +++ b/waku/v2/protocol/filter/filter_test.go @@ -852,8 +852,8 @@ func (s *FilterTestSuite) TestPubSubMultiOverlapContentTopic() { suffix = fmt.Sprintf("%02d", i) messages = append(messages, WakuMsg{ pubSubTopic: testTopic, - contentTopic: testContentTopic + suffix, - payload: testPayload + suffix, + contentTopic: fmt.Sprintf("%s%02d", testContentTopic, i), + payload: fmt.Sprintf("%s%02d", testPayload, i), }) }