Skip to content

Conversation

@ospfranco
Copy link
Contributor

Trying to expand the test suite a bit, more use cases pop up where not all code paths are covered, like #227

I've also found a concurrency bug when hot reloading, which should be fixed by marking the HostObjects as invalid as early as possible (at least from my testing)

I want to add more tests, but not sure what to cover at this point.

@ospfranco ospfranco self-assigned this Jan 22, 2025
@ospfranco ospfranco requested a review from rflopezm January 22, 2025 17:40
});

function_map["close"] = HOSTFN("close") {
invalidated = true;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is not necessarily a problem, but I discovered during hot reloads if the DB was already closed it would try to be invalidated again and sqlite does not like it.

@ospfranco ospfranco merged commit 01c00f5 into main Jan 24, 2025
8 checks passed
@ospfranco ospfranco deleted the oscar/expand-test-suite branch January 24, 2025 22:33
subtleGradient pushed a commit to effect-native/op-sqlite that referenced this pull request Sep 12, 2025
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