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

8 missing sweetest for external id #62

Merged
merged 5 commits into from
Aug 2, 2024
Merged

8 missing sweetest for external id #62

merged 5 commits into from
Aug 2, 2024

Conversation

nphias
Copy link
Contributor

@nphias nphias commented Aug 1, 2024

No description provided.

@nphias nphias requested a review from 8e8b2c August 1, 2024 13:11
@nphias nphias linked an issue Aug 1, 2024 that may be closed by this pull request
Copy link
Collaborator

@8e8b2c 8e8b2c left a comment

Choose a reason for hiding this comment

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

Nice, just a few changes please.


//this test anticipates future code changes that chnage tht behaviour
#[tokio::test(flavor = "multi_thread")]
async fn same_external_id_cannot_be_registered_twice_from_another_user() {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Please remove this test, and instead open an issue to track the feature request. It's really confusing to have a test that asserts the opposite of what it say it asserts.

// Alice gets the external_id Attestation
setup.consistency().await;

let maybe_record2: Vec<Record> = setup
Copy link
Collaborator

Choose a reason for hiding this comment

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

Confusing name given its a vec

#[tokio::test(flavor = "multi_thread")]
async fn only_authority_can_confirm_request() {
let setup = TestSetup::authority_and_alice().await;
//setup.conductors.exchange_peer_info().await;
Copy link
Collaborator

Choose a reason for hiding this comment

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

rm commented line




//this test anticipates future code changes that chnage tht behaviour
Copy link
Collaborator

Choose a reason for hiding this comment

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

Spelling! I know I've asked you delete this test anyway, but this seems like a good opportunity to remind you about:
https://marketplace.visualstudio.com/items?itemName=streetsidesoftware.code-spell-checker

@nphias
Copy link
Contributor Author

nphias commented Aug 1, 2024

done

Copy link
Collaborator

@8e8b2c 8e8b2c left a comment

Choose a reason for hiding this comment

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

Thanks!

@nphias nphias merged commit 42eeb8d into main Aug 2, 2024
4 checks passed
@nphias nphias deleted the 8-missing-sweetests branch August 2, 2024 08:59
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.

missing sweetests
2 participants