Skip to content

Commit

Permalink
address integration-tests reviews
Browse files Browse the repository at this point in the history
  • Loading branch information
qu1queee committed Sep 30, 2020
1 parent 54736d0 commit 2e0e385
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
8 changes: 0 additions & 8 deletions pkg/controller/buildrun/buildrun_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -421,14 +421,6 @@ func (r *ReconcileBuildRun) Reconcile(request reconcile.Request) (reconcile.Resu
)

}

// taskrun ramp-up duration (time between taskrun creation and taskrun pod creation)
buildmetrics.TaskRunRampUpDurationObserve(
buildRun.Status.BuildSpec.StrategyRef.Name,
buildRun.Namespace,
pod.CreationTimestamp.Time.Sub(lastTaskRun.CreationTimestamp.Time),
)

}
}

Expand Down
2 changes: 1 addition & 1 deletion test/e2e/validators.go
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ func validateBuildRunToSucceed(
Expect(err).ToNot(HaveOccurred(), "Error retrieving a buildRun")

return testBuildRun.Status.Succeeded
}, time.Duration(550*2)*time.Second, 5*time.Second).Should(Equal(trueCondition), "BuildRun did not succeed")
}, time.Duration(1100*getTimeoutMultiplier())*time.Second, 5*time.Second).Should(Equal(trueCondition), "BuildRun did not succeed")

// Verify that the BuildSpec is still available in the status
Expect(testBuildRun.Status.BuildSpec).ToNot(BeNil())
Expand Down

0 comments on commit 2e0e385

Please sign in to comment.