@@ -23,9 +23,6 @@ use test_rpc::meta::Os;
23
23
/// * `priority` - The order in which tests will be run where low numbers run before high numbers
24
24
/// and tests with the same number run in undefined order. `priority` defaults to 0.
25
25
///
26
- /// * `must_succeed` - If the testing suite stops running if this test fails. `must_succeed`
27
- /// defaults to false.
28
- ///
29
26
/// * `always_run` - If the test should always run regardless of what test filters are provided by
30
27
/// the user. `always_run` defaults to false.
31
28
///
@@ -51,10 +48,10 @@ use test_rpc::meta::Os;
51
48
///
52
49
/// ## Create a test with custom parameters
53
50
///
54
- /// This test will run early in the test loop and must succeed and will always run.
51
+ /// This test will run early in the test loop and will always run.
55
52
///
56
53
/// ```ignore
57
- /// #[test_function(priority = -1337, must_succeed = true, always_run = true)]
54
+ /// #[test_function(priority = -1337, always_run = true)]
58
55
/// pub async fn test_function(
59
56
/// rpc: ServiceClient,
60
57
/// mut mullvad_client: mullvad_management_interface::MullvadProxyClient,
@@ -109,7 +106,6 @@ fn parse_marked_test_function(
109
106
fn get_test_macro_parameters ( attributes : & syn:: AttributeArgs ) -> Result < MacroParameters > {
110
107
let mut priority = None ;
111
108
let mut always_run = false ;
112
- let mut must_succeed = false ;
113
109
let mut targets = vec ! [ ] ;
114
110
115
111
for attribute in attributes {
@@ -129,11 +125,6 @@ fn get_test_macro_parameters(attributes: &syn::AttributeArgs) -> Result<MacroPar
129
125
Lit :: Bool ( lit_bool) => always_run = lit_bool. value ( ) ,
130
126
_ => bail ! ( nv, "'always_run' should have a bool value" ) ,
131
127
}
132
- } else if nv. path . is_ident ( "must_succeed" ) {
133
- match lit {
134
- Lit :: Bool ( lit_bool) => must_succeed = lit_bool. value ( ) ,
135
- _ => bail ! ( nv, "'must_succeed' should have a bool value" ) ,
136
- }
137
128
} else if nv. path . is_ident ( "target_os" ) {
138
129
let Lit :: Str ( lit_str) = lit else {
139
130
bail ! ( nv, "'target_os' should have a string value" ) ;
@@ -157,7 +148,6 @@ fn get_test_macro_parameters(attributes: &syn::AttributeArgs) -> Result<MacroPar
157
148
Ok ( MacroParameters {
158
149
priority,
159
150
always_run,
160
- must_succeed,
161
151
targets,
162
152
} )
163
153
}
@@ -176,7 +166,6 @@ fn create_test(test_function: TestFunction) -> proc_macro2::TokenStream {
176
166
. collect ( ) ;
177
167
178
168
let always_run = test_function. macro_parameters . always_run ;
179
- let must_succeed = test_function. macro_parameters . must_succeed ;
180
169
181
170
let func_name = test_function. name ;
182
171
let function_mullvad_version = test_function. function_parameters . mullvad_client . version ( ) ;
@@ -219,7 +208,6 @@ fn create_test(test_function: TestFunction) -> proc_macro2::TokenStream {
219
208
func: #wrapper_closure,
220
209
priority: #test_function_priority,
221
210
always_run: #always_run,
222
- must_succeed: #must_succeed,
223
211
} ) ;
224
212
}
225
213
}
@@ -233,7 +221,6 @@ struct TestFunction {
233
221
struct MacroParameters {
234
222
priority : Option < i32 > ,
235
223
always_run : bool ,
236
- must_succeed : bool ,
237
224
targets : Vec < Os > ,
238
225
}
239
226
0 commit comments