File tree Expand file tree Collapse file tree 1 file changed +3
-7
lines changed
Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -322,8 +322,7 @@ impl FromStr for FlakeyTargetParams {
322322 ) )
323323 } else {
324324 let err_msg = format ! (
325- "expected {} feature arguments, found a number smaller than that" ,
326- vals[ 5 ]
325+ "Expected {} feature arguments but found {}" , vals[ 5 ] , vals. len( ) - 6
327326 ) ;
328327 Err ( DmError :: Dm ( ErrorEnum :: Invalid , err_msg) )
329328 }
@@ -947,13 +946,10 @@ mod tests {
947946 }
948947
949948 #[ test]
950- #[ should_panic]
951949 fn test_flakey_incorrect_feature_args_input ( ) {
952950 let result = "flakey 8:32 0 16 2 3 error_writes drop_writes"
953- . parse :: < FlakeyTargetParams > ( )
954- . unwrap ( ) ;
955- let expected = vec ! [ ] . iter ( ) . cloned ( ) . collect :: < HashSet < _ > > ( ) ;
956- assert_eq ! ( result. feature_args, expected) ;
951+ . parse :: < FlakeyTargetParams > ( ) ;
952+ assert_matches ! ( result, Err ( DmError :: Dm ( ErrorEnum :: Invalid , _) ) ) ;
957953 }
958954
959955 #[ test]
You can’t perform that action at this time.
0 commit comments