Skip to content

Commit a66405c

Browse files
Fix type-inference error messages for server update (#391)
## Usage and product changes Update expected error messages to reflect changes in server's error messages.
1 parent 9052409 commit a66405c

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

driver/query.feature

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1366,7 +1366,7 @@ Feature: Driver Query
13661366
This isnt valid TypeQL;
13671367
"""
13681368

1369-
Then typeql analyze; fails with a message containing: "Type-inference was unable to find compatible types for the pair of variables 'x' & 'p' across a constraint"
1369+
Then typeql analyze; fails with a message containing: "Type-inference was unable to find compatible types for the pair of variables 'x' & 'p' across a 'isa' constraint"
13701370
"""
13711371
match
13721372
$p sub! person; $x isa! $p;

query/analyze/structure.feature

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ Feature: Analyzed query structure
291291
This isnt valid TypeQL;
292292
"""
293293

294-
Then typeql analyze; fails with a message containing: "Type-inference was unable to find compatible types for the pair of variables 'x' & 'p' across a constraint"
294+
Then typeql analyze; fails with a message containing: "Type-inference was unable to find compatible types for the pair of variables 'x' & 'p' across a 'isa' constraint"
295295
"""
296296
match
297297
$p sub! person; $x isa! $p;

query/language/insert.feature

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ Feature: TypeQL Insert Query
232232
$x has ref 0;
233233
"""
234234
When connection open write transaction for database: typedb
235-
When typeql write query; fails with a message containing: "Type-inference derived an empty-set for some variable"
235+
When typeql write query; fails with a message containing: "Type-inference was unable to find compatible types for the pair of variables"
236236
"""
237237
insert
238238
$x isa person, has ref $age;

0 commit comments

Comments
 (0)