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

Additional unit tests #52

Draft
wants to merge 15 commits into
base: main
Choose a base branch
from
Draft

Additional unit tests #52

wants to merge 15 commits into from

Conversation

arik-so
Copy link
Contributor

@arik-so arik-so commented Aug 15, 2023

No description provided.

@arik-so
Copy link
Contributor Author

arik-so commented Aug 15, 2023

I need a concept ACK. If this approach to testing is fine, I'll open a PR with the remaining unit tests.

futures = "0.3"

[dev-dependencies]
lightning-rapid-gossip-sync = { git = "https://github.com/lightningdevkit/rust-lightning", rev = "e13ff10c63b01d3a9f1618320ce5f17dad2e5b48" }
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we actually need anything in upstream or can we stick to 116?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

we need the publicly exposed excess_data field in announcements

src/tests/mod.rs Outdated
}
});

client.query("TRUNCATE TABLE channel_announcements RESTART IDENTITY CASCADE", &[]).await.unwrap();
Copy link
Contributor

Choose a reason for hiding this comment

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

Lets create a temporary database instead.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

they're not really a thing. I can create permanent databases using randomized name suffixes, if that's ok?

Copy link
Contributor

Choose a reason for hiding this comment

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

Yea, that's what I meant.

@arik-so arik-so marked this pull request as draft September 7, 2023 15:47
@arik-so arik-so changed the title First unit test Additional unit tests Sep 7, 2023
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