-
Notifications
You must be signed in to change notification settings - Fork 93
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
Reset dersired state after each test #200
Reset dersired state after each test #200
Conversation
@@ -215,6 +219,7 @@ var _ = Describe("NodeNetworkState", func() { | |||
for _, node := range nodes { | |||
interfacesNameForNode(node).ShouldNot(ContainElement("bond1")) | |||
} | |||
resetDesiredStateForNodes() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can't we do it in module-wide (or even better, package-wide) AfterEach?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
well we don't control what afterEach come last..., prefer to do this way to be sure that this is the last thing is called.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fine with me. Would you just add a TODO to resetDesiredStateForNodes mentioning that we should drop it once Policy cleans up the state?
ci test please |
1 similar comment
ci test please |
93ae284
to
7b68519
Compare
…test - We have the --no-commit at leftover from another PR that we split, so we have to remove it - do desiredState cleanup at AfterEach - Use unique name for bridge and bond per test so failures at tearDown does not affect the other tests Signed-off-by: Quique Llorente <[email protected]>
7b68519
to
893cbc6
Compare
Set default bundle channel to 4.9
No description provided.