Skip to content

Commit 2a6881f

Browse files
chore:make linter happy
1 parent d9b4384 commit 2a6881f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cns/restserver/nodesubnet_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,8 @@ func checkIPassignment(t *testing.T, service *restserver.HTTPRestService, expect
116116
t.Fatalf("expected 2 entries in PodIPConfigState, got %d", len(service.PodIPConfigState))
117117
}
118118

119-
for ip, config := range service.GetPodIPConfigState() {
119+
for ip := range service.GetPodIPConfigState() {
120+
config := service.GetPodIPConfigState()[ip]
120121
if assignmentState, exists := expectedIPs[ip]; !exists {
121122
t.Fatalf("unexpected IP %s in PodIPConfigState", ip)
122123
} else if config.GetState() != assignmentState {

0 commit comments

Comments
 (0)