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

Change importexport tests to use test datadir #3738

Merged
merged 1 commit into from
Apr 5, 2023
Merged

Conversation

NullSoldier
Copy link
Contributor

@NullSoldier NullSoldier commented Apr 4, 2023

Summary

I noticed this was failing to run because my datadir database was a later version. I see it's using my actual datadir which I have my real data in. Changing this so it does not use a users real database to perform tests, and instead uses a test datadir.

Testing Plan

Documentation

Does this change require any updates to the Iron Fish Docs (ex. the RPC API
Reference
)? If yes, link a
related documentation pull request for the website.

[ ] Yes

Breaking Change

Is this a breaking change? If yes, add notes below on why this is breaking and
what additional work is required, if any.

[ ] Yes

@NullSoldier NullSoldier requested a review from a team as a code owner April 4, 2023 18:50
Copy link
Contributor

@EvanJRichard EvanJRichard left a comment

Choose a reason for hiding this comment

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

LGTM pending CI approval 🚢

@@ -5,6 +5,8 @@ set -e # exit immediately if anything returns with non-zero exit code
# Change working directory to the script's directory
cd "$(dirname "$0")"

DATA_DIR="../testdbs/importexport"
Copy link
Contributor

Choose a reason for hiding this comment

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

nit - I think if you use IRONFISH_DATA_DIR here you won't need to set it in each command

I noticed this was failing to run because my datadir was a later
version. I see it's using my actual datadir which I have my real data
in. Changing this so it does not use a users real database to perform
tests, and instead uses a test datadir.
@NullSoldier NullSoldier enabled auto-merge (squash) April 5, 2023 12:58
@NullSoldier NullSoldier merged commit c40ea28 into staging Apr 5, 2023
@NullSoldier NullSoldier deleted the jason/datadir branch April 5, 2023 13:06
jowparks pushed a commit that referenced this pull request Apr 5, 2023
I noticed this was failing to run because my datadir was a later
version. I see it's using my actual datadir which I have my real data
in. Changing this so it does not use a users real database to perform
tests, and instead uses a test datadir.
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.

3 participants