We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4363f8b commit a10735eCopy full SHA for a10735e
runtime/integration-tests/src/generic/env.rs
@@ -111,15 +111,23 @@ pub trait Env<T: Runtime>: Default {
111
)
112
});
113
114
+ let mut found_event = false;
115
for i in blocks.range_for(current, slot) {
116
self.__priv_build_block(i);
117
118
if let Blocks::UntilEvent { event, .. } = blocks.clone() {
119
if self.check_event(event).is_some() {
120
+ found_event = true;
121
break;
122
}
123
124
125
+
126
+ if let Blocks::UntilEvent { event, limit } = blocks.clone() {
127
+ if !found_event {
128
+ panic!("Event {event:?} was not found producing {limit} blocks");
129
+ }
130
131
132
133
/// Allows to mutate the relay storage state through the closure.
0 commit comments