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

Make SqliteCommandTest more robust #35578

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Make SqliteCommandTest more robust #35578

wants to merge 1 commit into from

Conversation

AndriySvyryd
Copy link
Member

No description provided.

@AndriySvyryd AndriySvyryd requested review from cincuranet, a team and Copilot February 4, 2025 00:44

Choose a reason for hiding this comment

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

Copilot reviewed 1 out of 1 changed files in this pull request and generated no comments.

@AndriySvyryd AndriySvyryd enabled auto-merge (rebase) February 4, 2025 00:46
});

private static void AssertBusy(int rc)
=> Assert.True(rc is SQLITE_LOCKED or SQLITE_BUSY or SQLITE_LOCKED_SHAREDCACHE or SQLITE_ERROR);
Copy link
Contributor

Choose a reason for hiding this comment

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

The new assert with i.e. SQLITE_ERROR changes the meaning. Shouldn't the test fail if we get SQLITE_ERROR instead of SQLITE_BUSY? It means something else failed, not the expected busy-ness, isn't it?

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.

2 participants