Skip to content

Commit 8233037

Browse files
committed
use public funcitons
1 parent 07b200d commit 8233037

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cns/restserver/internalapi_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ func TestStartSyncHostNCVersionLoop(t *testing.T) {
354354
ChannelMode: orchestratorType,
355355
}
356356
svc.StartSyncHostNCVersionLoop(t.Context(), cnsconf)
357-
svc.ncSyncState.Wait(t.Context()) // wait for at leat one run
357+
svc.Wait(t.Context()) // wait for at leat one run
358358
containerStatus = svc.state.ContainerStatus[req.NetworkContainerid]
359359
if containerStatus.HostVersion != "0" {
360360
t.Errorf("Unexpected containerStatus.HostVersion %s, expected host version should be 0 in string", containerStatus.HostVersion)
@@ -406,7 +406,7 @@ func TestPendingIPsGotUpdatedWhenSyncHostNCVersion(t *testing.T) {
406406
defer cleanup()
407407

408408
svc.StartSyncHostNCVersionLoop(t.Context(), fastcnsconf)
409-
svc.ncSyncState.Wait(t.Context()) // wait for at leat one run
409+
svc.Wait(t.Context()) // wait for at leat one run
410410
containerStatus = svc.state.ContainerStatus[req.NetworkContainerid]
411411

412412
receivedSecondaryIPConfigs = containerStatus.CreateNetworkContainerRequest.SecondaryIPConfigs

0 commit comments

Comments
 (0)