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

Commit

Permalink
address comments
Browse files Browse the repository at this point in the history
  • Loading branch information
neilkakkar committed May 30, 2024
1 parent b60f548 commit 1018198
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions feature-flags/src/flag_definitions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -164,21 +164,21 @@ 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.unwrap();
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
.expect("Failed to insert flags");

let flags_from_redis = FeatureFlagList::from_redis(client.clone(), team.id)
.await
.unwrap();
.expect("Failed to fetch flags from redis");
assert_eq!(flags_from_redis.flags.len(), 1);
let flag = flags_from_redis.flags.get(0).unwrap();
let flag = flags_from_redis.flags.get(0).expect("Empty flags in redis");
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().unwrap().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 1018198

Please sign in to comment.