Skip to content
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

Merged
merged 1 commit into from
Mar 13, 2023

Conversation

mangalaman93
Copy link
Member

No description provided.

@mangalaman93 mangalaman93 marked this pull request as ready for review March 3, 2023 20:04
Base automatically changed from aman/upgrade to main March 7, 2023 14:22
@MichelDiz MichelDiz added the dgraph Issue or PR created by an internal Dgraph contributor. label Mar 7, 2023
all-seeing-code
all-seeing-code previously approved these changes Mar 9, 2023
)

func TestMain(m *testing.M) {
c, err := dgraphtest.NewDCloudCluster()
Copy link
Contributor

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.

Copy link
Member Author

@mangalaman93 mangalaman93 Mar 13, 2023

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)
Copy link
Contributor

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?

Copy link
Member Author

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.

shivaji-kharse
shivaji-kharse previously approved these changes Mar 13, 2023
@all-seeing-code all-seeing-code self-requested a review March 13, 2023 08:41
@mangalaman93 mangalaman93 merged commit 238ebd2 into main Mar 13, 2023
@mangalaman93 mangalaman93 deleted the aman/cloud branch March 13, 2023 09:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dgraph Issue or PR created by an internal Dgraph contributor.
Development

Successfully merging this pull request may close these issues.

4 participants