mirror of
				https://github.com/meilisearch/meilisearch.git
				synced 2025-10-31 16:06:31 +00:00 
			
		
		
		
	Open Env without TLS
This commit is contained in:
		| @@ -12,7 +12,8 @@ use serde_json::{from_value, json}; | ||||
| #[test] | ||||
| fn test_facet_distribution_with_no_facet_values() { | ||||
|     let path = tempfile::tempdir().unwrap(); | ||||
|     let mut options = EnvOpenOptions::new(); | ||||
|     let options = EnvOpenOptions::new(); | ||||
|     let mut options = options.read_txn_without_tls(); | ||||
|     options.map_size(10 * 1024 * 1024); // 10 MB | ||||
|     let index = Index::new(options, &path, true).unwrap(); | ||||
|  | ||||
|   | ||||
| @@ -34,7 +34,8 @@ pub const CONTENT: &str = include_str!("../assets/test_set.ndjson"); | ||||
|  | ||||
| pub fn setup_search_index_with_criteria(criteria: &[Criterion]) -> Index { | ||||
|     let path = tempfile::tempdir().unwrap(); | ||||
|     let mut options = EnvOpenOptions::new(); | ||||
|     let options = EnvOpenOptions::new(); | ||||
|     let mut options = options.read_txn_without_tls(); | ||||
|     options.map_size(10 * 1024 * 1024); // 10 MB | ||||
|     let index = Index::new(options, &path, true).unwrap(); | ||||
|  | ||||
|   | ||||
| @@ -262,7 +262,8 @@ fn criteria_mixup() { | ||||
| #[test] | ||||
| fn criteria_ascdesc() { | ||||
|     let path = tempfile::tempdir().unwrap(); | ||||
|     let mut options = EnvOpenOptions::new(); | ||||
|     let options = EnvOpenOptions::new(); | ||||
|     let mut options = options.read_txn_without_tls(); | ||||
|     options.map_size(12 * 1024 * 1024); // 10 MB | ||||
|     let index = Index::new(options, &path, true).unwrap(); | ||||
|  | ||||
|   | ||||
| @@ -108,7 +108,8 @@ fn test_typo_tolerance_two_typo() { | ||||
| #[test] | ||||
| fn test_typo_disabled_on_word() { | ||||
|     let tmp = tempdir().unwrap(); | ||||
|     let mut options = EnvOpenOptions::new(); | ||||
|     let options = EnvOpenOptions::new(); | ||||
|     let mut options = options.read_txn_without_tls(); | ||||
|     options.map_size(4096 * 100); | ||||
|     let index = Index::new(options, tmp.path(), true).unwrap(); | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user