File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -90,8 +90,8 @@ func TestCacheRBAC(t *testing.T) {
90
90
require .NoError (t , err )
91
91
require .Equal (t , 1 , cache .Count ())
92
92
93
- _ = a .Close ()
94
- _ = b .Close ()
93
+ a .Close ()
94
+ b .Close ()
95
95
require .Equal (t , 0 , cache .Count ())
96
96
97
97
rec .AssertActorID (t , nobodyID .String (), rec .Pair (policy .ActionRead , file ))
@@ -179,7 +179,7 @@ func TestRelease(t *testing.T) {
179
179
ids = append (ids , uuid .New ())
180
180
}
181
181
182
- releases := make (map [uuid.UUID ][]func () error , 0 )
182
+ releases := make (map [uuid.UUID ][]func (), 0 )
183
183
// Acquire a bunch of references
184
184
batchSize := 10
185
185
for openedIdx , id := range ids {
@@ -208,7 +208,7 @@ func TestRelease(t *testing.T) {
208
208
for closedIdx , id := range ids {
209
209
stillOpen := len (ids ) - closedIdx
210
210
for closingIdx := range batchSize {
211
- _ = releases [id ][0 ]()
211
+ releases [id ][0 ]()
212
212
releases [id ] = releases [id ][1 :]
213
213
214
214
// Each time a file is released, the metrics should decrement the file refs
You can’t perform that action at this time.
0 commit comments