@@ -1169,7 +1169,7 @@ fn parse_upgrades(components: &[&str]) -> Option<Path> {
1169
1169
#[ cfg( test) ]
1170
1170
mod tests {
1171
1171
use super :: * ;
1172
-
1172
+ const DUMMY_CLIENT_ID : & str = "07-tendermint-0" ;
1173
1173
#[ rstest:: rstest]
1174
1174
#[ case( NEXT_CLIENT_SEQUENCE , Path :: NextClientSequence ( NextClientSequencePath ) ) ]
1175
1175
#[ case(
@@ -1182,28 +1182,27 @@ mod tests {
1182
1182
) ]
1183
1183
#[ case(
1184
1184
"clients/07-tendermint-0/clientState" ,
1185
- Path :: ClientState ( ClientStatePath ( "07-tendermint-0" . into( ) ) )
1186
- ) ]
1185
+ Path :: ClientState ( ClientStatePath ( DUMMY_CLIENT_ID . into( ) ) ) ) ]
1187
1186
#[ case(
1188
1187
"clients/07-tendermint-0/consensusStates/15-31" ,
1189
1188
Path :: ClientConsensusState ( ClientConsensusStatePath {
1190
- client_id: "07-tendermint-0" . into( ) ,
1189
+ client_id: DUMMY_CLIENT_ID . into( ) ,
1191
1190
revision_number: 15 ,
1192
1191
revision_height: 31 ,
1193
1192
} )
1194
1193
) ]
1195
1194
#[ case(
1196
1195
"clients/07-tendermint-0/consensusStates/15-31/processedTime" ,
1197
1196
Path :: ClientUpdateTime ( ClientUpdateTimePath {
1198
- client_id: "07-tendermint-0" . into( ) ,
1197
+ client_id: DUMMY_CLIENT_ID . into( ) ,
1199
1198
revision_number: 15 ,
1200
1199
revision_height: 31 ,
1201
1200
} )
1202
1201
) ]
1203
1202
#[ case(
1204
1203
"clients/07-tendermint-0/consensusStates/15-31/processedHeight" ,
1205
1204
Path :: ClientUpdateHeight ( ClientUpdateHeightPath {
1206
- client_id: "07-tendermint-0" . into( ) ,
1205
+ client_id: DUMMY_CLIENT_ID . into( ) ,
1207
1206
revision_number: 15 ,
1208
1207
revision_height: 31 ,
1209
1208
} )
@@ -1289,7 +1288,7 @@ mod tests {
1289
1288
assert_eq ! (
1290
1289
parse_client_paths( & components) ,
1291
1290
Some ( Path :: ClientState ( ClientStatePath ( ClientId :: from(
1292
- "07-tendermint-0"
1291
+ DUMMY_CLIENT_ID
1293
1292
) ) ) )
1294
1293
) ;
1295
1294
@@ -1299,7 +1298,7 @@ mod tests {
1299
1298
assert_eq ! (
1300
1299
parse_client_paths( & components) ,
1301
1300
Some ( Path :: ClientConsensusState ( ClientConsensusStatePath {
1302
- client_id: "07-tendermint-0" . into( ) ,
1301
+ client_id: DUMMY_CLIENT_ID . into( ) ,
1303
1302
revision_number: 15 ,
1304
1303
revision_height: 31 ,
1305
1304
} ) )
@@ -1314,7 +1313,7 @@ mod tests {
1314
1313
assert_eq ! (
1315
1314
parse_client_paths( & components) ,
1316
1315
Some ( Path :: ClientUpdateTime ( ClientUpdateTimePath {
1317
- client_id: "07-tendermint-0" . into( ) ,
1316
+ client_id: DUMMY_CLIENT_ID . into( ) ,
1318
1317
revision_number: 15 ,
1319
1318
revision_height: 31 ,
1320
1319
} ) )
@@ -1326,7 +1325,7 @@ mod tests {
1326
1325
assert_eq ! (
1327
1326
parse_client_paths( & components) ,
1328
1327
Some ( Path :: ClientUpdateHeight ( ClientUpdateHeightPath {
1329
- client_id: "07-tendermint-0" . into( ) ,
1328
+ client_id: DUMMY_CLIENT_ID . into( ) ,
1330
1329
revision_number: 15 ,
1331
1330
revision_height: 31 ,
1332
1331
} ) )
0 commit comments