We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9b9971e commit 5c05f88Copy full SHA for 5c05f88
packages/vm/src/cache.rs
@@ -672,6 +672,18 @@ mod tests {
672
cache.store_code(CONTRACT, true, true).unwrap();
673
}
674
675
+ #[test]
676
+ fn store_code_without_persist_works() {
677
+ let cache: Cache<MockApi, MockStorage, MockQuerier> =
678
+ unsafe { Cache::new(make_testing_options()).unwrap() };
679
+ let checksum = cache.store_code(CONTRACT, true, false).unwrap();
680
+
681
+ assert!(
682
+ cache.load_wasm(&checksum).is_err(),
683
+ "wasm file should not be saved to disk"
684
+ );
685
+ }
686
687
#[test]
688
// This property is required when the same bytecode is uploaded multiple times
689
fn store_code_allows_saving_multiple_times() {
0 commit comments