File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -15,13 +15,13 @@ import (
1515
1616// Mock client that simply tracks if refresh has been called
1717type 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() {
3838func (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
5151type 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
You can’t perform that action at this time.
0 commit comments