Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions internal/dialects/helm/templates_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -586,10 +586,10 @@ func TestTemplateParsingScalesNearLinearly(t *testing.T) {
return duration
}

small := measure(10_000)
large := measure(40_000)
small := measure(22_000)
large := measure(88_000)
if limit := small*8 + 25*time.Millisecond; large > limit {
t.Fatalf("40k actions took %s after 10k took %s; want <= %s", large, small, limit)
t.Fatalf("88k actions took %s after 22k took %s; want <= %s", large, small, limit)
}
}

Expand All @@ -612,13 +612,13 @@ func TestTemplateDenseSingleLineParsingScalesNearLinearly(t *testing.T) {
return best
}

small := measure(2_000)
large := measure(8_000)
small := measure(24_000)
large := measure(96_000)
if limit := small*9 + 50*time.Millisecond; large > limit {
t.Fatalf("8k dense same-line actions took %s after 2k took %s; want <= %s", large, small, limit)
t.Fatalf("96k dense same-line actions took %s after 24k took %s; want <= %s", large, small, limit)
}
if large > 5*time.Second {
t.Fatalf("8k dense same-line actions took %s; want <= 5s", large)
t.Fatalf("96k dense same-line actions took %s; want <= 5s", large)
}
}

Expand Down
Loading