Duplicate scabbard protocol consts in tests
This commit duplicates the scabbard protocol constants in some
libscabbard client tests. The constants are moving to the rest api
common crate as they are only used by the rest api endpoints and these
tests.
@@ -460,11 +460,11 @@ mod tests {
},
};
- use crate::protocol::{
- SCABBARD_ADD_BATCHES_PROTOCOL_MIN, SCABBARD_BATCH_STATUSES_PROTOCOL_MIN,
- SCABBARD_GET_STATE_PROTOCOL_MIN, SCABBARD_LIST_STATE_PROTOCOL_MIN,
- SCABBARD_STATE_ROOT_PROTOCOL_MIN,
- };
+ const SCABBARD_ADD_BATCHES_PROTOCOL_MIN: u32 = 1;
+ const SCABBARD_BATCH_STATUSES_PROTOCOL_MIN: u32 = 1;
+ const SCABBARD_GET_STATE_PROTOCOL_MIN: u32 = 1;
+ const SCABBARD_LIST_STATE_PROTOCOL_MIN: u32 = 1;
+ const SCABBARD_STATE_ROOT_PROTOCOL_MIN: u32 = 1;
const MOCK_CIRCUIT_ID: &str = "01234-abcde";
const MOCK_SERVICE_ID: &str = "ABCD";
