Skip to content

Conversation

@AseemPrasad
Copy link

The test was asserting that the response contains "pg", but the mock returned an empty DatabaseOptions{} struct, causing the test to fail.
The test TestClusterTool_listOptions is checking if the response contains "pg", but the mock returns an empty DatabaseOptions{} struct. This test will always fail because an empty struct won't contain "pg" in its JSON representation.

Fix: Updated the mock to return a DatabaseOptions struct with an Engines map containing "pg", so the assertion will now pass correctly.

…nes map containing 'pg', so the assertion will now pass correctly
@AseemPrasad
Copy link
Author

Hacktoberfest

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.

1 participant