From 0e1538bdd3aeb7d8414f1d2c80770f5dcc0f50e5 Mon Sep 17 00:00:00 2001 From: trivernis Date: Mon, 10 Jan 2022 20:52:34 +0100 Subject: [PATCH] Fix tests Signed-off-by: trivernis --- mediarepo-api/src/test/test_type_serialization.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mediarepo-api/src/test/test_type_serialization.rs b/mediarepo-api/src/test/test_type_serialization.rs index 56ecb83..838c2d8 100644 --- a/mediarepo-api/src/test/test_type_serialization.rs +++ b/mediarepo-api/src/test/test_type_serialization.rs @@ -1,6 +1,6 @@ use crate::types::files::GetFileThumbnailOfSizeRequest; use crate::types::filtering::{ - FilterExpression, SortDirection, SortKey, TagQuery, ValueComparator, + FilterExpression, FilterQuery, SortDirection, SortKey, TagQuery, ValueComparator, }; use crate::types::identifier::FileIdentifier; use bromine::payload::DynamicSerializer; @@ -35,10 +35,10 @@ fn it_serializes_tag_queries() { #[test] fn it_serializes_filter_expressions() { - test_serialization(FilterExpression::Query(TagQuery { + test_serialization(FilterExpression::Query(FilterQuery::Tag(TagQuery { tag: String::from("World"), negate: false, - })) + }))) .unwrap(); }