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

test failed issue #72

Open
qujihan opened this issue Oct 21, 2024 · 1 comment
Open

test failed issue #72

qujihan opened this issue Oct 21, 2024 · 1 comment

Comments

@qujihan
Copy link
Contributor

qujihan commented Oct 21, 2024

hi, @erikgrinaker , thanks for yor great project!

When I run cargo test ---test tests it says invalid input: table test already exists, I think I can fix it by deleting the datadir, but I'm not sure where the datadir is set to.

Can you tell me how I should look at datadir how to view it?

@erikgrinaker
Copy link
Owner

erikgrinaker commented Nov 3, 2024

Each test runs in its own isolated data directory, which is deleted when the test exits.

It sounds like there may be stray toyDB processes still running for some reason, possibly from old tests. Try looking for any processes with e.g. ps aux | grep toydb and killing them.

The test harness setup/teardown code is in https://github.com/erikgrinaker/toydb/blob/master/tests/testcluster.rs.

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

No branches or pull requests

2 participants