Skip to content

Commit df3d900

Browse files
fix: make linter happy
1 parent 0abad88 commit df3d900

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

refresh/fetcher_test.go

+5-5
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@ import (
1515

1616
// Mock client that simply tracks if refresh has been called
1717
type TestClient struct {
18-
refreshCount int32
18+
refreshCount int
1919
responses []nmagent.Interfaces
2020
mu sync.Mutex
2121
}
2222

2323
// FetchRefreshCount atomically fetches the refresh count
24-
func (c *TestClient) FetchRefreshCount() int32 {
24+
func (c *TestClient) FetchRefreshCount() int {
2525
c.mu.Lock()
2626
defer c.mu.Unlock()
2727
return c.refreshCount
@@ -38,7 +38,7 @@ func (c *TestClient) UpdateRefreshCount() {
3838
func (c *TestClient) GetInterfaceIPInfo(_ context.Context) (nmagent.Interfaces, error) {
3939
defer c.UpdateRefreshCount()
4040

41-
if c.refreshCount >= int32(len(c.responses)) {
41+
if c.refreshCount >= len(c.responses) {
4242
return c.responses[len(c.responses)-1], nil
4343
}
4444

@@ -49,12 +49,12 @@ var _ nodesubnet.InterfaceRetriever = &TestClient{}
4949

5050
// Mock client that simply consumes fetched IPs
5151
type TestConsumer struct {
52-
consumeCount int32
52+
consumeCount int
5353
mu sync.Mutex
5454
}
5555

5656
// FetchConsumeCount atomically fetches the consume count
57-
func (c *TestConsumer) FetchConsumeCount() int32 {
57+
func (c *TestConsumer) FetchConsumeCount() int {
5858
c.mu.Lock()
5959
defer c.mu.Unlock()
6060
return c.consumeCount

0 commit comments

Comments
 (0)