Skip to content

Commit

Permalink
chore: confirm zone is set in e2e test (#518)
Browse files Browse the repository at this point in the history
  • Loading branch information
nolanmar511 authored Jul 8, 2019
1 parent 9bd110e commit 5265380
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions system-test/integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,10 @@ func TestAgentIntegration(t *testing.T) {
t.Fatalf("failed to initialize startup script: %v", err)
}

gceTr.StartInstance(ctx, &tc.InstanceConfig)
err := gceTr.StartInstance(ctx, &tc.InstanceConfig)
if err != nil {
t.Fatalf("failed to start GCE instance: %v", err)
}
defer func() {
if gceTr.DeleteInstance(ctx, &tc.InstanceConfig); err != nil {
t.Fatal(err)
Expand All @@ -252,7 +255,7 @@ func TestAgentIntegration(t *testing.T) {
endTime := timeNow.Format(time.RFC3339)
startTime := timeNow.Add(-1 * time.Hour).Format(time.RFC3339)
for _, wantProfile := range tc.wantProfiles {
pr, err := gceTr.TestRunner.QueryProfiles(tc.ProjectID, tc.name, startTime, endTime, wantProfile.profileType)
pr, err := gceTr.TestRunner.QueryProfilesWithZone(tc.ProjectID, tc.name, startTime, endTime, wantProfile.profileType, tc.Zone)
if err != nil {
t.Errorf("QueryProfiles(%s, %s, %s, %s, %s) got error: %v", tc.ProjectID, tc.name, startTime, endTime, wantProfile.profileType, err)
continue
Expand Down

0 comments on commit 5265380

Please sign in to comment.