Skip to content
This repository was archived by the owner on May 20, 2025. It is now read-only.

Commit 060cca6

Browse files
XenoPhexGeorge Gelashviliidoru
committed
split integration test into two due to output ordering
Co-authored-by: George Gelashvili <ggelashvili+cf@pivotal.io> Co-authored-by: Sam Coward <scoward@pivotal.io>
1 parent f1a802c commit 060cca6

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

integration/environment_variable_warnings_test.go

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,15 @@ var _ = Describe("Environment Variables Warning", func() {
1919
})
2020

2121
When("Environment variables starting with GOVC_* or GOVMOMI_* are set", func() {
22-
It("should print a warning for each environment variable", func() {
22+
It("should print a warning for each GOVC_* environment variable", func() {
2323
session := helpers.StembuildWithEnv(map[string]string{"GOVC_BANANA": "I AM A BANANA", "GOVMOMI_POTATO": "THIS IS A POTATO"}, stembuildExecutable, "--version")
2424
Eventually(session.Err).Should(Say("Warning: The following environment variable is set and might override flags provided to stembuild: GOVC_BANANA\n"))
2525
Consistently(session.Err).ShouldNot(Say("I AM A BANANA"))
26+
Eventually(session).Should(Exit(0))
27+
})
28+
29+
It("should print a warning for each GOVMOMI_* environment variable", func() {
30+
session := helpers.StembuildWithEnv(map[string]string{"GOVC_BANANA": "I AM A BANANA", "GOVMOMI_POTATO": "THIS IS A POTATO"}, stembuildExecutable, "--version")
2631
Eventually(session.Err).Should(Say("Warning: The following environment variable is set and might override flags provided to stembuild: GOVMOMI_POTATO\n"))
2732
Consistently(session.Err).ShouldNot(Say("THIS IS A POTATO"))
2833
Eventually(session).Should(Exit(0))

0 commit comments

Comments
 (0)