Skip to content

Commit 16788b6

Browse files
fix linter
Signed-off-by: denis-tingaikin <[email protected]>
1 parent 9c5c521 commit 16788b6

File tree

3 files changed

+2
-7
lines changed

3 files changed

+2
-7
lines changed

pkg/registry/etcd/ns_server_test.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -200,10 +200,8 @@ func Test_NSHighloadWatch_ShouldNotFail(t *testing.T) {
200200
defer cancel()
201201

202202
const clinetCount = 20
203-
const updateCount int32 = 200
204-
205-
watch.DefaultChanSize = updateCount
206203

204+
var updateCount = watch.DefaultChanSize
207205
var actual atomic.Int32
208206
var myClientset = fake.NewSimpleClientset()
209207

pkg/registry/etcd/nse_server.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,6 @@ func (n *etcdNSERegistryServer) subscribeOnEvents(ctx context.Context) <-chan *r
246246
n.subscribers.Remove(node)
247247
close(ret)
248248
})
249-
250249
}()
251250

252251
return ret

pkg/registry/etcd/nse_server_test.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -198,10 +198,8 @@ func Test_NSEHighloadWatch_ShouldNotFail(t *testing.T) {
198198
defer cancel()
199199

200200
const clinetCount = 20
201-
const updateCount int32 = 200
202-
203-
watch.DefaultChanSize = updateCount
204201

202+
var updateCount = watch.DefaultChanSize
205203
var actual atomic.Int32
206204
var myClientset = fake.NewSimpleClientset()
207205

0 commit comments

Comments
 (0)