// We only smoke test this on a single error variant.
We only smoke test this on a single error variant.
We only smoke test this on a single error variant .
fn should_not_insert_transcript_data_into_store_if_csp_returns_error() {
        let transcript = NiDkgTranscript {
            committee: receivers(&[NODE_3, NODE_1, NODE_2]),
            registry_version: REG_V1,
            ..dummy_transcript()
        };
        let csp = csp_with_load_threshold_signing_key_returning(Err(
            CspDkgLoadPrivateKeyError::InvalidTranscriptError(invalid_arg_error()),
        ));
        let threshold_sig_data_store = LockableThresholdSigDataStore::new();
        let result = load_transcript(
            &NODE_3,
            &threshold_sig_data_store,
            &csp,
            &transcript,
            &no_op_logger(),
        );
        let transcript_data =
            transcript_data_from_store_option(&threshold_sig_data_store, NI_DKG_ID_1);
        assert!(transcript_data.is_none());
        assert!(result.is_err());
    }
fn should_not_insert_transcript_data_into_store_if_csp_returns_error ( ) { let transcript = NiDkgTranscript { committee : receivers ( & [ NODE_3 , NODE_1 , NODE_2 ] ) , registry_version : REG_V1 , .. dummy_transcript ( ) } ; let csp = csp_with_load_threshold_signing_key_returning ( Err ( CspDkgLoadPrivateKeyError :: InvalidTranscriptError ( invalid_arg_error ( ) ) , ) ) ; let threshold_sig_data_store = LockableThresholdSigDataStore :: new ( ) ; let result = load_transcript ( & NODE_3 , & threshold_sig_data_store , & csp , & transcript , & no_op_logger ( ) , ) ; let transcript_data = transcript_data_from_store_option ( & threshold_sig_data_store , NI_DKG_ID_1 ) ; assert ! ( transcript_data is_none ( ) ) ; assert ! ( result is_err ( ) ) ; }
We only smoke test this on a single error variant.
We only smoke test this on a single error variant .