all: rename variables with lowercase-l/uppercase-I
See http://go/no-ell Signed-off-by: Alex Chan <alexc@tailscale.com> Updates #cleanup Change-Id: I8c976b51ce7a60f06315048b1920516129cc1d5d
This commit is contained in:
@@ -84,8 +84,8 @@ func TestStressEvictions(t *testing.T) {
|
||||
for range numProbes {
|
||||
v := vals[rand.Intn(len(vals))]
|
||||
c.Set(v, true)
|
||||
if l := c.Len(); l > cacheSize {
|
||||
t.Fatalf("Cache size now %d, want max %d", l, cacheSize)
|
||||
if ln := c.Len(); ln > cacheSize {
|
||||
t.Fatalf("Cache size now %d, want max %d", ln, cacheSize)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -119,8 +119,8 @@ func TestStressBatchedEvictions(t *testing.T) {
|
||||
c.DeleteOldest()
|
||||
}
|
||||
}
|
||||
if l := c.Len(); l > cacheSizeMax {
|
||||
t.Fatalf("Cache size now %d, want max %d", l, cacheSizeMax)
|
||||
if ln := c.Len(); ln > cacheSizeMax {
|
||||
t.Fatalf("Cache size now %d, want max %d", ln, cacheSizeMax)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user