p2p: Fix pubsub fuzz test (#10583)

Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
This commit is contained in:
Preston Van Loon
2022-04-29 13:20:18 -05:00
committed by GitHub
parent ad03938964
commit 9d2bdfe14d
2 changed files with 4 additions and 3 deletions

View File

@@ -118,6 +118,7 @@ go_test(
"options_test.go",
"parameter_test.go",
"pubsub_filter_test.go",
"pubsub_fuzz_test.go",
"pubsub_test.go",
"rpc_topic_mappings_test.go",
"sender_test.go",

View File

@@ -1,5 +1,5 @@
//go:build fuzz && go1.18 && disabled
// +build fuzz,go1.18,disabled
//go:build go1.18
// +build go1.18
package p2p_test
@@ -18,7 +18,7 @@ func FuzzMsgID(f *testing.F) {
f.Fuzz(func(t *testing.T, topic string) {
_, err := p2p.ExtractGossipDigest(topic)
if err != nil {
t.Fatal(err)
return
}
})
}