summaryrefslogtreecommitdiff
path: root/rust/tests/initialization.rs
diff options
context:
space:
mode:
authorMason Reed <mason@vector35.com>2025-01-31 13:04:59 -0500
committerMason Reed <mason@vector35.com>2025-01-31 16:17:30 -0500
commitd0379d3139a3d60351a49425469d7672f69542ad (patch)
tree1ff66f1fe510a03257f718a83f0d065ae64128d9 /rust/tests/initialization.rs
parentf5b7f5b2779b1b29e14856efd2a2e56a7c3b0113 (diff)
Improve headless initialization in Rust API
- Add option to disable loading of user and repo plugins - Prevent shutting down the core while other sessions are still running The reason we need to prevent shutting down the core is if one session is dropped and another session has worker actions queued than they would be cleared prematurely, and also the enterprise license would be revoked prematurely as well.
Diffstat (limited to 'rust/tests/initialization.rs')
-rw-r--r--rust/tests/initialization.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/rust/tests/initialization.rs b/rust/tests/initialization.rs
index 35de73ee..cfbdbdc3 100644
--- a/rust/tests/initialization.rs
+++ b/rust/tests/initialization.rs
@@ -16,7 +16,7 @@ fn test_license_validation() {
release_license();
// Make sure we properly report invalid license.
let options = InitializationOptions::default()
- .with_checkout_license(false)
+ .with_license_checkout(false)
.with_license("blah blag");
match init_with_opts(options) {
Ok(_) => panic!("Expected license validation to fail, but it succeeded!"),