File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed
Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -69,6 +69,7 @@ pub enum TestFeatureCode {
6969 HistoryRetention ,
7070 UserGroups ,
7171 UsersMB69096 ,
72+ PingRSCBC220 ,
7273}
7374
7475impl TestAgent {
@@ -101,6 +102,9 @@ impl TestAgent {
101102 TestFeatureCode :: UsersMB69096 => {
102103 !self . cluster_version . equal ( & SERVER_VERSION_800_COMMUNITY )
103104 }
105+ TestFeatureCode :: PingRSCBC220 => {
106+ self . cluster_version . edition != Some ( NodeEdition :: Community )
107+ }
104108 }
105109 }
106110}
Original file line number Diff line number Diff line change 1717 */
1818
1919use crate :: common:: default_agent_options:: create_default_options;
20+ use crate :: common:: features:: TestFeatureCode ;
2021use crate :: common:: test_config:: { run_test, setup_test} ;
2122use couchbase_core:: agent:: Agent ;
2223use couchbase_core:: connection_state:: ConnectionState ;
@@ -35,6 +36,10 @@ mod common;
3536#[ test]
3637fn test_ping ( ) {
3738 run_test ( async |mut agent| {
39+ if !agent. supports_feature ( & TestFeatureCode :: PingRSCBC220 ) {
40+ return ;
41+ }
42+
3843 let opts = PingOptions :: new ( )
3944 . kv_timeout ( Duration :: from_millis ( 1000 ) )
4045 . query_timeout ( Duration :: from_millis ( 75000 ) )
You can’t perform that action at this time.
0 commit comments