You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
iflet dash_sdk::error::Error::DapiClientError(e) = result {
108
108
assert!(
109
109
e.contains(
110
-
"Transport(Grpc(Status { code: InvalidArgument, message: \"contract not found error"
110
+
"Transport(Grpc(Status { status: InvalidArgument, message: \"contract not found error"
111
111
),
112
112
"we should get contract not found error, got: {:?}",
113
113
e,
@@ -280,9 +280,9 @@ type MutFn = fn(&mut ContestedDocumentVotePollDriveQuery);
280
280
#[test_case(|q| q.limit = Some(u16::MAX),Err("limit 65535 out of bounds of [1, 100]");"limit u16::MAX")]
281
281
#[test_case(|q| q.start_at = Some(([0x11;32],true)),Ok("Contenders { winner: None, contenders: {Identifier(");"start_at does not exist should return next contenders")]
282
282
#[test_case(|q| q.start_at = Some(([0xff;32],true)),Ok("Contenders { winner: None, contenders: {}, abstain_vote_tally: None, lock_vote_tally: None }");"start_at 0xff;32 should return zero contenders")]
283
-
#[test_case(|q| q.vote_poll.document_type_name = "nx doctype".to_string(),Err(r#"code: InvalidArgument, message: "document type nx doctype not found"#);"non existing document type returns InvalidArgument")]
284
-
#[test_case(|q| q.vote_poll.index_name = "nx index".to_string(),Err(r#"code: InvalidArgument, message: "index with name nx index is not the contested index"#);"non existing index returns InvalidArgument")]
285
-
#[test_case(|q| q.vote_poll.index_name = "dashIdentityId".to_string(),Err(r#"code: InvalidArgument, message: "index with name dashIdentityId is not the contested index"#);"existing non-contested index returns InvalidArgument")]
283
+
#[test_case(|q| q.vote_poll.document_type_name = "nx doctype".to_string(),Err(r#"status: InvalidArgument, message: "document type nx doctype not found"#);"non existing document type returns InvalidArgument")]
284
+
#[test_case(|q| q.vote_poll.index_name = "nx index".to_string(),Err(r#"status: InvalidArgument, message: "index with name nx index is not the contested index"#);"non existing index returns InvalidArgument")]
285
+
#[test_case(|q| q.vote_poll.index_name = "dashIdentityId".to_string(),Err(r#"status: InvalidArgument, message: "index with name dashIdentityId is not the contested index"#);"existing non-contested index returns InvalidArgument")]
286
286
#[test_case(|q| q.vote_poll.index_values = vec![],Err("query uses index parentNameAndLabel, this index has 2 properties, but the query provided 0 index values instead");"index_values empty vec returns error")]
287
287
#[test_case(|q| q.vote_poll.index_values = vec![Value::Text("".to_string())],Err("query uses index parentNameAndLabel, this index has 2 properties, but the query provided 1 index values instead");"index_values empty string returns error")]
288
288
#[test_case(|q| q.vote_poll.index_values = vec![Value::Text("dash".to_string())],Err("query uses index parentNameAndLabel, this index has 2 properties, but the query provided 1 index values instead");"index_values with one value returns error")]
0 commit comments