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 bug Test_VdcUpdateStorageProfile test #448

Merged
merged 1 commit into from
Mar 17, 2022

Conversation

mikeletux
Copy link
Contributor

No PR associated with this bug.
@adambarreiro and myself found this while running the test suite.

Description

There is a bug in Test_VdcUpdateStorageProfile that compares a type bool against a pointer. The test fails because of this.

Detailed description

In test ´Test_VdcUpdateStorageProfile´, one of the checks is wrong as it tries to compare a bool type against a pointertype:

check.Assert(updatedStorageProfile.Enabled, Equals, true)

We must deference the pointer, so it looks like:

check.Assert(*updatedStorageProfile.Enabled, Equals, true)

…ainst a pointer

Signed-off-by: Miguel Sama <msama@vmware.com>
@Didainius Didainius removed the request for review from dataclouder March 17, 2022 11:20
@mikeletux mikeletux merged commit 7494bee into vmware:main Mar 17, 2022
@mikeletux mikeletux deleted the test-update-storage-profile-bug branch March 17, 2022 15:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants