File tree 2 files changed +10
-10
lines changed
common/proto-conv/tests/it
2 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -185,13 +185,13 @@ fn test_pb_from_to() -> anyhow::Result<()> {
185
185
fn test_incompatible ( ) -> anyhow:: Result < ( ) > {
186
186
let db_meta = new_db_meta ( ) ;
187
187
let mut p = db_meta. to_pb ( ) ?;
188
- p. ver = 3 ;
189
- p. min_compatible = 3 ;
188
+ p. ver = 4 ;
189
+ p. min_compatible = 4 ;
190
190
191
191
let res = mt:: DatabaseMeta :: from_pb ( p) ;
192
192
assert_eq ! (
193
193
Incompatible {
194
- reason: s( "executable ver=2 is smaller than the message min compatible ver: 3 " )
194
+ reason: s( "executable ver=3 is smaller than the message min compatible ver: 4 " )
195
195
} ,
196
196
res. unwrap_err( )
197
197
) ;
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ fn s(ss: impl ToString) -> String {
32
32
fn test_user_info ( ) -> UserInfo {
33
33
let option = mt:: UserOption :: default ( )
34
34
. with_set_flag ( mt:: UserOptionFlag :: TenantSetting )
35
- . with_default_role ( Some ( "role1" . to_string ( ) ) ) ;
35
+ . with_default_role ( None ) ;
36
36
37
37
mt:: UserInfo {
38
38
name : "test_user" . to_string ( ) ,
@@ -115,13 +115,13 @@ fn test_user_incompatible() -> anyhow::Result<()> {
115
115
{
116
116
let user_info = test_user_info ( ) ;
117
117
let mut p = user_info. to_pb ( ) ?;
118
- p. ver = 3 ;
119
- p. min_compatible = 3 ;
118
+ p. ver = 4 ;
119
+ p. min_compatible = 4 ;
120
120
121
121
let res = mt:: UserInfo :: from_pb ( p) ;
122
122
assert_eq ! (
123
123
Incompatible {
124
- reason: s( "executable ver=2 is smaller than the message min compatible ver: 3 " )
124
+ reason: s( "executable ver=3 is smaller than the message min compatible ver: 4 " )
125
125
} ,
126
126
res. unwrap_err( )
127
127
) ;
@@ -130,13 +130,13 @@ fn test_user_incompatible() -> anyhow::Result<()> {
130
130
{
131
131
let user_stage_info = test_user_stage_info ( ) ;
132
132
let mut p = user_stage_info. to_pb ( ) ?;
133
- p. ver = 3 ;
134
- p. min_compatible = 3 ;
133
+ p. ver = 4 ;
134
+ p. min_compatible = 4 ;
135
135
136
136
let res = mt:: UserStageInfo :: from_pb ( p) ;
137
137
assert_eq ! (
138
138
Incompatible {
139
- reason: s( "executable ver=2 is smaller than the message min compatible ver: 3 " )
139
+ reason: s( "executable ver=3 is smaller than the message min compatible ver: 4 " )
140
140
} ,
141
141
res. unwrap_err( )
142
142
) ;
You can’t perform that action at this time.
0 commit comments