| 208 | } |
| 209 | |
| 210 | fn make_task() -> ExecutionTask { |
| 211 | ExecutionTask::new(Request { |
| 212 | request_id: RequestId::new(1), |
| 213 | tenant_id: TenantId::new(1), |
| 214 | database_id: DatabaseId::DEFAULT, |
| 215 | vshard_id: VShardId::new(0), |
| 216 | plan: PhysicalPlan::Vector(VectorOp::Insert { |
| 217 | collection: "test".into(), |
| 218 | vector: vec![0.1], |
| 219 | dim: 1, |
| 220 | field_name: "emb".into(), |
| 221 | surrogate: Surrogate::ZERO, |
| 222 | }), |
| 223 | deadline: Instant::now() + Duration::from_secs(5), |
| 224 | priority: Priority::Normal, |
| 225 | trace_id: TraceId::ZERO, |
| 226 | consistency: ReadConsistency::Strong, |
| 227 | idempotency_key: None, |
| 228 | event_source: crate::event::EventSource::User, |
| 229 | user_roles: Vec::new(), |
| 230 | user_id: None, |
| 231 | statement_digest: None, |
| 232 | }) |
| 233 | } |
| 234 | |
| 235 | #[test] |
| 236 | fn no_governor_always_allows() { |