pbacsko commented on code in PR #758:
URL: https://github.com/apache/yunikorn-k8shim/pull/758#discussion_r1446685947
##########
test/e2e/admission_controller/admission_controller_suite_test.go:
##########
@@ -188,6 +190,8 @@ func TestAdmissionController(t *testing.T) {
}
var _ = BeforeSuite(func() {
+ _, filename, _, _ := runtime.Caller(0)
+ suiteName = common.GetSuiteName(filename)
Review Comment:
-These two lines are constantly repeated. It would make sense to rename and
extend `GetSuiteName()` to return two strings, the `suiteName` and `filename`,
eg. `common.GetTestSuiteInfo()`.-
Ok, I just realized that `runtime.Caller(0)` is dynamic and needed to be
called here. So scratch that.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]