Skip to content
This repository has been archived by the owner on Jun 21, 2024. It is now read-only.

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
neilkakkar committed May 30, 2024
1 parent 1018198 commit 7d9d092
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions feature-flags/src/flag_definitions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,6 @@ pub struct FeatureFlagList {
}

impl FeatureFlagList {

/// Returns feature flags from redis given a team_id
#[instrument(skip_all)]
pub async fn from_redis(
Expand Down Expand Up @@ -164,7 +163,9 @@ mod tests {
async fn test_fetch_flags_from_redis() {
let client = setup_redis_client(None);

let team = insert_new_team_in_redis(client.clone()).await.expect("Failed to insert team");
let team = insert_new_team_in_redis(client.clone())
.await
.expect("Failed to insert team");

insert_flags_for_team_in_redis(client.clone(), team.id, None)
.await
Expand All @@ -178,7 +179,14 @@ mod tests {
assert_eq!(flag.key, "flag1");
assert_eq!(flag.team_id, team.id);
assert_eq!(flag.filters.groups.len(), 1);
assert_eq!(flag.filters.groups[0].properties.as_ref().expect("Properties don't exist on flag").len(), 1);
assert_eq!(
flag.filters.groups[0]
.properties
.as_ref()
.expect("Properties don't exist on flag")
.len(),
1
);
}

#[tokio::test]
Expand Down

0 comments on commit 7d9d092

Please sign in to comment.