Skip to content

Commit 1a241c5

Browse files
author
jianggang
committed
feat: add sync_once function
1 parent b994c6f commit 1a241c5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/feature_probe.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -446,7 +446,7 @@ mod tests {
446446

447447
#[cfg(test)]
448448
mod server_sdk_contract_tests {
449-
use crate::{FPDetail, FPError, FPUser, FeatureProbe, Repository};
449+
use crate::{FPDetail, FPError, FPUser, FeatureProbe, Repository, SyncType};
450450
use serde::{Deserialize, Serialize};
451451
use serde_json::Value;
452452
use std::fmt::Debug;
@@ -521,7 +521,7 @@ mod server_sdk_contract_tests {
521521
println!("scenario: {}", scenario.scenario);
522522
assert!(!scenario.cases.is_empty());
523523
let fp = FeatureProbe::new_with("secret key".to_string(), scenario.fixture);
524-
524+
fp.sync_now(SyncType::Polling);
525525
for case in scenario.cases {
526526
println!(" case: {}", case.name);
527527

0 commit comments

Comments
 (0)