Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

Added missing SecretStore tests - signing session #6411

Merged
merged 4 commits into from
Sep 5, 2017

Conversation

svyatonik
Copy link
Collaborator

  • also fixed signing/decryption session completion message addressees

@bjornwgnr I have planned another couple of tests to add, will do this in next PRs.

@svyatonik svyatonik added A0-pleasereview 🤓 Pull request needs code review. F4-tests 💻 Tests need fixing, improving or augmenting. M4-core ⛓ Core client code / Rust. labels Aug 29, 2017
@@ -85,7 +85,7 @@ struct SessionData {
}

/// Signing session state.
#[derive(Debug, PartialEq)]
#[derive(Debug, PartialEq, Clone, Copy)]
Copy link
Contributor

Choose a reason for hiding this comment

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

could be #[cfg_attr(test, derive(Clone, Copy))]

#[cfg(test)]
/// Get consensus job reference.
Copy link
Contributor

Choose a reason for hiding this comment

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

i think according to our style, the previous variant was correct (attribute after doc comment)

Not sure doc comment is needed for test item anyway though

@NikVolf NikVolf added A6-mustntgrumble 💦 Pull request has areas for improvement. The author need not address them before merging. and removed A0-pleasereview 🤓 Pull request needs code review. F4-tests 💻 Tests need fixing, improving or augmenting. labels Sep 2, 2017
#[test]
fn does_not_fail_when_consensus_message_received_after_consensus_established() {
let (_, mut sl) = prepare_signing_sessions(1, 3);
sl.master().initialize(777.into()).unwrap();
Copy link
Contributor

Choose a reason for hiding this comment

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

could use other than 777 in some tests, to disallow future contributions taking shortcuts to pass tests

@NikVolf NikVolf added A8-looksgood 🦄 Pull request is reviewed well. and removed A6-mustntgrumble 💦 Pull request has areas for improvement. The author need not address them before merging. labels Sep 3, 2017
@svyatonik svyatonik merged commit 2df61d0 into master Sep 5, 2017
@svyatonik svyatonik deleted the secretstore_tests branch September 5, 2017 07:35
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A8-looksgood 🦄 Pull request is reviewed well. M4-core ⛓ Core client code / Rust.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants