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

(release/v20.07) test: retry getting client in TestNodes. #6482

Merged
merged 1 commit into from
Sep 18, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion systest/group-delete/group_delete_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,15 @@ func getError(rc io.ReadCloser) error {
}

func TestNodes(t *testing.T) {
dg, err := testutil.GetClientToGroup("1")
var dg *dgo.Dgraph
var err error
for i := 0; i < 3; i++ {
dg, err = testutil.GetClientToGroup("1")
if err == nil {
break
}
time.Sleep(5*time.Second)
}
require.NoError(t, err, "error while getting connection to group 1")

NodesSetup(t, dg)
Expand Down