Skip to content

Commit 40800d4

Browse files
authored
Update fuzz test
Removed Unicode characters from fuzz test cases.
1 parent 3427981 commit 40800d4

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

test/fuzzing/message_fuzz_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ func FuzzBase64Payload(f *testing.F) {
4747
f.Add([]byte("Hello, World!"))
4848
f.Add([]byte(""))
4949
f.Add([]byte("\x00\x01\x02\x03"))
50-
f.Add([]byte("🚀 Unicode test"))
50+
f.Add([]byte(" Unicode test"))
5151
f.Add(make([]byte, 1024)) // Large payload
5252

5353
f.Fuzz(func(t *testing.T, data []byte) {
@@ -97,7 +97,7 @@ func FuzzTopicName(f *testing.F) {
9797
f.Add("123-numeric-start")
9898
f.Add("")
9999
f.Add("../../etc/passwd")
100-
f.Add("topic-with-émojis-🚀")
100+
f.Add("topic-with-émojis-")
101101
f.Add(string(make([]byte, 256))) // Long name
102102

103103
f.Fuzz(func(t *testing.T, topicName string) {
@@ -200,4 +200,4 @@ func decompress(data []byte, compType string) []byte {
200200
}
201201
return data
202202
}
203-
}
203+
}

0 commit comments

Comments
 (0)