File tree 2 files changed +10
-1
lines changed
src/dfx-core/src/config/model
2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,14 @@ teardown() {
21
21
assert_command diff " $NETWORK_ID_PATH " " $NETWORK_ID_BY_SETTINGS_DIGEST_PATH "
22
22
}
23
23
24
+ @test " start and stop" {
25
+ dfx_start
26
+ dfx_stop
27
+
28
+ dfx_start
29
+ dfx_stop
30
+ }
31
+
24
32
@test " start and stop with different options" {
25
33
[[ " $USE_POCKETIC " ]] && skip " skipped for pocketic: clean required"
26
34
dfx_start --artificial-delay 101
Original file line number Diff line number Diff line change @@ -222,7 +222,8 @@ impl<'a> CachedConfig<'a> {
222
222
}
223
223
}
224
224
pub fn can_share_state ( & self , other : & Self ) -> bool {
225
- self == other
225
+ // effective canister id does not matter for ability to share state
226
+ self . replica_rev == other. replica_rev && self . config == other. config
226
227
}
227
228
pub fn get_effective_canister_id ( & self ) -> Option < Principal > {
228
229
self . effective_canister_id
You can’t perform that action at this time.
0 commit comments