@@ -663,11 +663,11 @@ mod tests {
663
663
let error = client. delete_key ( "invalid_key" ) . await . unwrap_err ( ) ;
664
664
assert ! ( matches!(
665
665
error,
666
- Error :: MeiliSearchError {
666
+ Error :: Meilisearch ( MeilisearchError {
667
667
error_code: ErrorCode :: ApiKeyNotFound ,
668
668
error_type: ErrorType :: InvalidRequest ,
669
669
..
670
- }
670
+ } )
671
671
) ) ;
672
672
673
673
// ==> executing the action without enough right
@@ -681,21 +681,21 @@ mod tests {
681
681
let error = client. delete_key ( "invalid_key" ) . await . unwrap_err ( ) ;
682
682
assert ! ( matches!(
683
683
error,
684
- Error :: MeiliSearchError {
684
+ Error :: Meilisearch ( MeilisearchError {
685
685
error_code: ErrorCode :: InvalidApiKey ,
686
686
error_type: ErrorType :: Auth ,
687
687
..
688
- }
688
+ } )
689
689
) ) ;
690
690
// with a good key
691
691
let error = client. delete_key ( & key. key ) . await . unwrap_err ( ) ;
692
692
assert ! ( matches!(
693
693
error,
694
- Error :: MeiliSearchError {
694
+ Error :: Meilisearch ( MeilisearchError {
695
695
error_code: ErrorCode :: InvalidApiKey ,
696
696
error_type: ErrorType :: Auth ,
697
697
..
698
- }
698
+ } )
699
699
) ) ;
700
700
701
701
// cleanup
@@ -741,7 +741,7 @@ mod tests {
741
741
742
742
assert!(matches!(
743
743
error,
744
- Error::MeiliSearchError {
744
+ Error::MeilisearchError {
745
745
error_code: ErrorCode::InvalidApiKeyIndexes,
746
746
error_type: ErrorType::InvalidRequest,
747
747
..
@@ -756,11 +756,11 @@ mod tests {
756
756
757
757
assert ! ( matches!(
758
758
error,
759
- Error :: MeiliSearchError {
759
+ Error :: Meilisearch ( MeilisearchError {
760
760
error_code: ErrorCode :: InvalidApiKeyExpiresAt ,
761
761
error_type: ErrorType :: InvalidRequest ,
762
762
..
763
- }
763
+ } )
764
764
) ) ;
765
765
766
766
// ==> executing the action without enough right
@@ -776,11 +776,11 @@ mod tests {
776
776
777
777
assert ! ( matches!(
778
778
error,
779
- Error :: MeiliSearchError {
779
+ Error :: Meilisearch ( MeilisearchError {
780
780
error_code: ErrorCode :: InvalidApiKey ,
781
781
error_type: ErrorType :: Auth ,
782
782
..
783
- }
783
+ } )
784
784
) ) ;
785
785
786
786
// cleanup
@@ -830,7 +830,7 @@ mod tests {
830
830
831
831
assert!(matches!(
832
832
error,
833
- Error::MeiliSearchError {
833
+ Error::MeilisearchError {
834
834
error_code: ErrorCode::InvalidApiKeyIndexes,
835
835
error_type: ErrorType::InvalidRequest,
836
836
..
@@ -844,11 +844,11 @@ mod tests {
844
844
845
845
assert ! ( matches!(
846
846
error,
847
- Error :: MeiliSearchError {
847
+ Error :: Meilisearch ( MeilisearchError {
848
848
error_code: ErrorCode :: InvalidApiKeyExpiresAt ,
849
849
error_type: ErrorType :: InvalidRequest ,
850
850
..
851
- }
851
+ } )
852
852
) ) ;
853
853
key. expires_at = None ;
854
854
@@ -864,11 +864,11 @@ mod tests {
864
864
865
865
assert ! ( matches!(
866
866
error,
867
- Error :: MeiliSearchError {
867
+ Error :: Meilisearch ( MeilisearchError {
868
868
error_code: ErrorCode :: InvalidApiKey ,
869
869
error_type: ErrorType :: Auth ,
870
870
..
871
- }
871
+ } )
872
872
) ) ;
873
873
874
874
// cleanup
0 commit comments