Skip to content

Commit

Permalink
Fix TestStreamWriteYAMLResponse flakyness (#4122)
Browse files Browse the repository at this point in the history
Signed-off-by: Marco Pracucci <[email protected]>
  • Loading branch information
pracucci authored Apr 28, 2021
1 parent a0cd678 commit 050ddda
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/util/http_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,9 @@ func TestStreamWriteYAMLResponse(t *testing.T) {
expectedContentType: "application/yaml",
value: make(map[string]*testStruct),
}
for i := 0; i < rand.Intn(100); i++ {

// Generate some data to serialize.
for i := 0; i < rand.Intn(100)+1; i++ {
ts := testStruct{
Name: "testName" + strconv.Itoa(i),
Value: i,
Expand Down

0 comments on commit 050ddda

Please sign in to comment.