Skip to content

Commit

Permalink
Merge pull request #17431 from jim-minter/s2i_python_flake
Browse files Browse the repository at this point in the history
Automatic merge from submit-queue.

resolve s2i python test flake
  • Loading branch information
openshift-merge-robot authored Nov 30, 2017
2 parents cee0ee7 + 20f9909 commit d6c509c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion test/extended/image_ecosystem/s2i_python.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,12 @@ var _ = g.Describe("[image_ecosystem][python][Slow] hot deploy for openshift pyt
err := exutil.WaitForOpenShiftNamespaceImageStreams(oc)
o.Expect(err).NotTo(o.HaveOccurred())
g.By(fmt.Sprintf("calling oc new-app %s", djangoRepository))
err = oc.Run("new-app").Args(djangoRepository, "--strategy=source").Execute()
// gunicorn workers read the application source lazily. For
// this test to succeed reliably, we must have one worker only
// (WEB_CONCURRENCY=1). Having primed the worker via
// assertPageCountIs, we can then expect it not to read in the
// modified application source when hot deploy is disabled.
err = oc.Run("new-app").Args(djangoRepository, "--strategy=source", "-e", "WEB_CONCURRENCY=1").Execute()
o.Expect(err).NotTo(o.HaveOccurred())

g.By("waiting for build to finish")
Expand Down

0 comments on commit d6c509c

Please sign in to comment.