Skip to content

Commit

Permalink
fix: fix failing cgi test
Browse files Browse the repository at this point in the history
  • Loading branch information
1lann committed Jan 12, 2021
1 parent dd641bc commit e9f9555
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions caskethttp/fastcgi/fcgiclient_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ func DisabledTest(t *testing.T) {
log.Println("test:", "post data (more than 60KB)")
data := ""
for i := 0x00; i < 0xff; i++ {
v0 := strings.Repeat(string(i), 256)
v0 := strings.Repeat(string(rune(i)), 256)
h := md5.New()
_, _ = io.WriteString(h, v0)
k0 := fmt.Sprintf("%x", h.Sum(nil))
Expand All @@ -266,7 +266,7 @@ func DisabledTest(t *testing.T) {
log.Println("test:", "post forms (256 keys, more than 1MB)")
p1 := make(map[string]string, 1)
for i := 0x00; i < 0xff; i++ {
v0 := strings.Repeat(string(i), 4096)
v0 := strings.Repeat(string(rune(i)), 4096)
h := md5.New()
_, _ = io.WriteString(h, v0)
k0 := fmt.Sprintf("%x", h.Sum(nil))
Expand Down

0 comments on commit e9f9555

Please sign in to comment.