-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
chore(tests): run tests in query package against dgraph cloud #8726
Conversation
3242e2b
to
f17bcc9
Compare
465e0d4
to
6db5113
Compare
6db5113
to
9d19ae0
Compare
) | ||
|
||
func TestMain(m *testing.M) { | ||
c, err := dgraphtest.NewDCloudCluster() |
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.
Maybe add a comment that it needs TEST_DGRAPH_CLOUD_CLUSTER_URL
and TEST_DGRAPH_CLOUD_CLUSTER_TOKEN
in env
. I understand they'd see the error, but keeping a comment will be helpful here as well.
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.
I will create it in the next PR. There are other things that I need to add too.
@@ -350,13 +349,13 @@ age2 : int @index(int) . | |||
|
|||
func populateCluster() { | |||
if err := client.Alter(context.Background(), &api.Operation{DropAll: true}); err != nil { | |||
panic(fmt.Sprintf("Could not perform DropAll op. Got error %v", err.Error())) | |||
panic(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.
Any reason to remove the wrapping?
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.
It's not needed. Just panic(error) will give you enough information to figure out what happened.
9d19ae0
to
5d52be7
Compare
5e88f24
5d52be7
to
5e88f24
Compare
No description provided.