Skip to content

Commit

Permalink
merge to upstream main
Browse files Browse the repository at this point in the history
Signed-off-by: shamb0 <[email protected]>
  • Loading branch information
shamb0 committed Aug 16, 2024
1 parent 36c8862 commit 11f1190
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 12 deletions.
12 changes: 1 addition & 11 deletions crates/testing/src/script.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
use std::{sync::Arc, time::Duration};

use hotshot_task_impls::events::HotShotEvent;
use hotshot_types::{event::Event, traits::node_implementation::NodeType};
use hotshot_types::traits::node_implementation::NodeType;

use crate::predicates::{Predicate, PredicateResult};

Expand Down Expand Up @@ -66,16 +66,6 @@ impl<TYPES: NodeType, S> Expectations<TYPES, S> {
}
}

pub struct ExternalEventsExpectations<TYPES: NodeType> {
pub output_asserts: Vec<Box<dyn Predicate<Arc<Event<TYPES>>>>>,
}

impl<TYPES: NodeType> ExternalEventsExpectations<TYPES> {
pub fn from_outputs(output_asserts: Vec<Box<dyn Predicate<Arc<Event<TYPES>>>>>) -> Self {
Self { output_asserts }
}
}

pub fn panic_extra_output_in_script<S>(stage_number: usize, script_name: String, output: &S)
where
S: std::fmt::Debug,
Expand Down
1 change: 0 additions & 1 deletion crates/types/src/event.rs
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,6 @@ pub enum EventType<TYPES: NodeType> {
/// A message destined for external listeners was received
ExternalMessageReceived(Vec<u8>),
}

#[derive(Debug, Serialize, Deserialize, Clone)]
/// A list of actions that we track for nodes
pub enum HotShotAction {
Expand Down

0 comments on commit 11f1190

Please sign in to comment.