mirror of
https://blitiri.com.ar/repos/chasquid
synced 2026-10-29 15:02:30 +00:00
Apply go fix to simplify using modern features
This patch contains the result of running `go fix ./...`, which applies simplifications that make use of modern language features. There are no logic or behaviour changes.
This commit is contained in:
@@ -37,13 +37,13 @@ func TestLong(t *testing.T) {
|
||||
tr.SetMaxEvents(100)
|
||||
|
||||
// First 90 events, no drop.
|
||||
for i := 0; i < 90; i++ {
|
||||
for i := range 90 {
|
||||
tr.Printf("evt %d", i)
|
||||
}
|
||||
expectEvents(t, tr, 90)
|
||||
|
||||
// Up to 99, still no drop.
|
||||
for i := 0; i < 9; i++ {
|
||||
for i := range 9 {
|
||||
tr.Printf("evt %d", i)
|
||||
}
|
||||
expectEvents(t, tr, 99)
|
||||
@@ -57,7 +57,7 @@ func TestLong(t *testing.T) {
|
||||
expectEvents(t, tr, 101)
|
||||
|
||||
// Add more events, expect none of them to exceed 101.
|
||||
for i := 0; i < 9; i++ {
|
||||
for i := range 9 {
|
||||
tr.Printf("evt %d", i)
|
||||
expectEvents(t, tr, 101)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user