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

check result of api version call #75

Merged
merged 2 commits into from
Mar 26, 2018
Merged
Changes from 1 commit
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
Next Next commit
check result of api version call
  • Loading branch information
ObiWahn committed Mar 26, 2018
commit 83f970793e795e393c79c478f82931a3a16fb6f7
8 changes: 6 additions & 2 deletions tests/deployments_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,14 +127,18 @@ func deploymentSubTest(t *testing.T, mode api.DeploymentMode, engine api.Storage
if err != nil {
t.Fatal("Unable to create connection to: %v", agent.ID)
}
waitUntilVersionUp(dbclient)
if waitUntilVersionUp(dbclient) != nil {
t.Fatal("Version check failed for: %v", single.ID)
}
}
for _, single := range singles {
dbclient, err := arangod.CreateArangodClient(ctx, k8sClient.CoreV1(), deployment, api.ServerGroupAgents, single.ID)
if err != nil {
t.Fatal("Unable to create connection to: %v", single.ID)
}
waitUntilVersionUp(dbclient)
if waitUntilVersionUp(dbclient) != nil {
t.Fatal("Version check failed for: %v", single.ID)
}
}
default:
t.Fatalf("DeploymentMode %v is not supported!", mode)
Expand Down