Skip to content
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
3 changes: 2 additions & 1 deletion test/extended/builds/run_policy.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ import (
exutil "github.com/openshift/origin/test/extended/util"
)

var _ = g.Describe("[builds][Slow] using build configuration runPolicy", func() {
// this test is very latency sensitive so run it by itself (serially).
var _ = g.Describe("[builds][Slow][Serial] using build configuration runPolicy", func() {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since you're already making this change, might as well get rid of the assignment to var _. I don't see the need for that.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hm. it's what we do in all our extended tests(not just the builds ones), I assumed it served some initialization purpose/magic.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"The var _ = ... trick allows us to evaluate the Describe at the top level without having to wrap it in a func init() {}"

(from https://onsi.github.io/ginkgo/)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ahh, true you don't need an init. Thx.

defer g.GinkgoRecover()
var (
// Use invalid source here as we don't care about the result
Expand Down