Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix unit test TestReconcile #5798

Merged
merged 1 commit into from
Dec 18, 2023
Merged

Fix unit test TestReconcile #5798

merged 1 commit into from
Dec 18, 2023

Conversation

tnqn
Copy link
Member

@tnqn tnqn commented Dec 14, 2023

cniServer.reconcile() now installs flows asynchorously.

Fixes #5796

Copy link
Contributor

@antoninbas antoninbas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

couple of questions, otherwise lgtm

ContainerID: generateUUID(t),
},
}
unconnectedInterface := &interfacestore.InterfaceConfig{
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess this one is mostly useful for Windows testing?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, but it's also meaningful to validate linux does nothing for it.

PodNamespace: testPodNamespace,
ContainerID: generateUUID(t),
},
normalInterface := &interfacestore.InterfaceConfig{
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't try to diff the interface definitions, but is there a significant difference between the Linux and Windows versions of the test interfaces, or could we use a shared definition in a common file?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There should be no difference, I have moved them to common file.

cniServer.reconcile() now installs flows asynchorously.

Signed-off-by: Quan Tian <qtian@vmware.com>
Copy link
Contributor

@antoninbas antoninbas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@tnqn
Copy link
Member Author

tnqn commented Dec 18, 2023

/skip-all

@tnqn tnqn merged commit 2276c3e into antrea-io:main Dec 18, 2023
47 of 54 checks passed
@tnqn tnqn deleted the fix-unit-test branch December 18, 2023 02:46
tnqn added a commit to tnqn/antrea that referenced this pull request Jan 8, 2024
cniServer.reconcile() now installs flows asynchorously.

Signed-off-by: Quan Tian <qtian@vmware.com>
tnqn added a commit to tnqn/antrea that referenced this pull request Jan 8, 2024
cniServer.reconcile() now installs flows asynchorously.

Signed-off-by: Quan Tian <qtian@vmware.com>
tnqn added a commit that referenced this pull request Jan 10, 2024
cniServer.reconcile() now installs flows asynchorously.

Signed-off-by: Quan Tian <qtian@vmware.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Flaky test] TestReconcile
2 participants