From 5f84c9f2f453fc60fc84ebf249866042f20da25d Mon Sep 17 00:00:00 2001
From: EmirVildanov <reddog201030@gmail.com>
Date: Wed, 21 Aug 2024 13:43:52 +0300
Subject: [PATCH] fix: change uuid test

---
 sbroad-core/src/ir/value/tests.rs | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/sbroad-core/src/ir/value/tests.rs b/sbroad-core/src/ir/value/tests.rs
index f8eb57169..a2d019fbd 100644
--- a/sbroad-core/src/ir/value/tests.rs
+++ b/sbroad-core/src/ir/value/tests.rs
@@ -40,19 +40,19 @@ fn uuid() {
     assert_eq!(v_uid.partial_cmp(&Value::String(t_uid_2.to_string())), None);
 }
 
+#[test]
 fn uuid_negative() {
     assert_eq!(
         Value::String("hello".to_string())
             .cast(&Type::Uuid)
             .unwrap_err(),
-        SbroadError::FailedTo(
-            Action::Serialize,
-            Some(Entity::Value),
-            "uuid hello into string: invalid length: expected one of [36, 32], found 5"
-                .to_smolstr()
+        SbroadError::Invalid(
+            Entity::Value,
+            Some(SmolStr::from("Failed to cast 'hello' to uuid."))
         )
     );
 }
+
 #[test]
 fn decimal() {
     assert_eq!(
-- 
GitLab