Skip to content

Commit d16dec7

Browse files
committed
test: Refactor state sync tests to test the public interface
1 parent d2edb5c commit d16dec7

File tree

3 files changed

+180
-102
lines changed

3 files changed

+180
-102
lines changed

rs/state_layout/src/state_layout.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ pub const SPLIT_MARKER_FILE: &str = "split_from.pbuf";
5656
pub const SUBNET_QUEUES_FILE: &str = "subnet_queues.pbuf";
5757
pub const SYSTEM_METADATA_FILE: &str = "system_metadata.pbuf";
5858
pub const STATS_FILE: &str = "stats.pbuf";
59+
pub const WASM_FILE: &str = "software.wasm";
5960

6061
/// `ReadOnly` is the access policy used for reading checkpoints. We
6162
/// don't want to ever modify persisted states.
@@ -1473,7 +1474,7 @@ impl<Permissions: AccessPolicy> CanisterLayout<Permissions> {
14731474
}
14741475

14751476
pub fn wasm(&self) -> WasmFile<Permissions> {
1476-
self.canister_root.join("software.wasm").into()
1477+
self.canister_root.join(WASM_FILE).into()
14771478
}
14781479

14791480
pub fn canister(

rs/state_manager/src/state_sync.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ impl StateSync {
3232
}
3333

3434
/// Returns requested state as a Chunkable artifact for StateSync.
35-
pub fn create_chunkable_state(
35+
fn create_chunkable_state(
3636
&self,
3737
id: &StateSyncArtifactId,
3838
) -> Option<Box<dyn Chunkable<StateSyncMessage> + Send>> {

0 commit comments

Comments
 (0)