From 36996e6fd2bc8f02cc240e84dcee5e70cbb6921e Mon Sep 17 00:00:00 2001
From: Shylock Hg <33566796+Shylock-Hg@users.noreply.github.com>
Date: Wed, 24 Feb 2021 20:07:33 +0800
Subject: [PATCH] Correct the new error msg. (#770)

* Correct the new error msg.

* Fix comment.
---
 tests/tck/features/update/Update.IntVid.feature | 4 ++--
 tests/tck/features/update/Update.feature        | 8 ++++----
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/tests/tck/features/update/Update.IntVid.feature b/tests/tck/features/update/Update.IntVid.feature
index 0b9f3762..dc8541af 100644
--- a/tests/tck/features/update/Update.IntVid.feature
+++ b/tests/tck/features/update/Update.IntVid.feature
@@ -314,7 +314,7 @@ Feature: Update int vid of vertex and edge
       SET student_default.name = "Lily", student_default.age = "10"
       YIELD $^.student_default.name AS Name, $^.student_default.gender AS Gender
       """
-    Then a ExecutionError should be raised at runtime: Storage Error: Atomic operation failed.
+    Then a ExecutionError should be raised at runtime: Storage Error: Invalid data, may be wrong value type.
     # Insertable: vertex 113 ("Jack") --> ("Jack", "Three")
     # 113 is nonexistent, gender with default value,
     # update student_default.age with string value
@@ -324,7 +324,7 @@ Feature: Update int vid of vertex and edge
       SET student_default.name = "Ann", student_default.age = "10"
       YIELD $^.student_default.name AS Name, $^.student_default.gender AS Gender
       """
-    Then a ExecutionError should be raised at runtime: Storage Error: Atomic operation failed.
+    Then a ExecutionError should be raised at runtime: Storage Error: Invalid data, may be wrong value type.
     # Insertable success, 115 is nonexistent, name and age without default value,
     # the filter is always true.
     When executing query:
diff --git a/tests/tck/features/update/Update.feature b/tests/tck/features/update/Update.feature
index 40cc04c8..781e66bc 100644
--- a/tests/tck/features/update/Update.feature
+++ b/tests/tck/features/update/Update.feature
@@ -311,7 +311,7 @@ Feature: Update string vid of vertex and edge
       SET student_default.name = "Lily", student_default.age = "10"
       YIELD $^.student_default.name AS Name, $^.student_default.gender AS Gender
       """
-    Then a ExecutionError should be raised at runtime: Storage Error: Atomic operation failed.
+    Then a ExecutionError should be raised at runtime: Storage Error: Invalid data, may be wrong value type.
     # Insertable: vertex "113" ("Jack") --> ("Jack", "Three")
     # 113 is nonexistent, gender with default value,
     # update student_default.age with string value
@@ -321,7 +321,7 @@ Feature: Update string vid of vertex and edge
       SET student_default.name = "Ann", student_default.age = "10"
       YIELD $^.student_default.name AS Name, $^.student_default.gender AS Gender
       """
-    Then a ExecutionError should be raised at runtime: Storage Error: Atomic operation failed.
+    Then a ExecutionError should be raised at runtime: Storage Error: Invalid data, may be wrong value type.
     # Insertable success, "115" is nonexistent, name and age without default value,
     # the filter is always true.
     When executing query:
@@ -841,7 +841,7 @@ Feature: Update string vid of vertex and edge
       SET name = "Lily", age = "10"
       YIELD name AS Name, gender AS Gender
       """
-    Then a ExecutionError should be raised at runtime: Storage Error: Atomic operation failed.
+    Then a ExecutionError should be raised at runtime: Storage Error: Invalid data, may be wrong value type.
     # Insertable: vertex "113" ("Jack") --> ("Jack", "Three")
     # 113 is nonexistent, gender with default value,
     # update student_default.age with string value
@@ -851,7 +851,7 @@ Feature: Update string vid of vertex and edge
       SET name = "Ann", age = "10"
       YIELD name AS Name, gender AS Gender
       """
-    Then a ExecutionError should be raised at runtime: Storage Error: Atomic operation failed.
+    Then a ExecutionError should be raised at runtime: Storage Error: Invalid data, may be wrong value type.
     # Insertable success, "115" is nonexistent, name and age without default value,
     # the filter is always true.
     When executing query:
-- 
GitLab