-
Notifications
You must be signed in to change notification settings - Fork 1
Add GitHub action to run tests #6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
tests/delete_test.go
Outdated
} | ||
|
||
func TestDeleteWithLimitAndOrder(t *testing.T) { | ||
DB.Exec(`DROP TABLE "users"`).Commit() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add a condition to ignore the error if the table doesn't exist and returns ORA-00942?
if err := DB.Exec(`DROP TABLE "users"`).Commit().Error; err != nil {
if !strings.Contains(err.Error(), "ORA-00942") {
t.Fatalf("Failed to migrate, got error: %s", err)
}
}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved. Please take a look at the comment before merging. Thanks!
This PR adds GitHub actions to run all passing tests. Failing and dependent tests have been disabled.