Skip to content

Commit

Permalink
gix expected error
Browse files Browse the repository at this point in the history
  • Loading branch information
sam-kleiner committed Apr 9, 2023
1 parent 764b084 commit 68782b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion database/surrealdb/surrealdb_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ func TestErrorParsing(t *testing.T) {
t.Fatal(err)
}

wantErr := `migration failed: Parse error on line 1 at character 0 when parsing 'DEFINE TABLEE user SCHEMALESS;'`
wantErr := `There was a problem with the database: Parse error on line 1 at character 0 when parsing 'DEFINE TABLEE user SCHEMALESS;'`
if err := d.Run(strings.NewReader("DEFINE TABLEE user SCHEMALESS;")); err == nil {
t.Fatal("expected err but got nil")
} else if err.Error() != wantErr {
Expand Down

0 comments on commit 68782b4

Please sign in to comment.