Uploaded image for project: 'PuppetDB'
  1. PuppetDB
  2. PDB-1109

Unit testing failure: Couldn't satisfy such-that predicate after 10 tries

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: PDB 2.2.2
    • Fix Version/s: PDB 2.3.0
    • Component/s: None
    • Labels:
      None
    • Template:
    • Story Points:
      1
    • Sprint:
      PuppetDB 2015-01-14, PuppetDB 2015-01-28

      Description

      We keep hitting a problem with one of the clojure tests:

      lein test :only puppetlabs.puppetdb.zip-test/post-order-collect
      ERROR in (post-order-collect) (core.clj:4403)
      Uncaught exception, not in assertion.
      expected: nil
        actual: clojure.lang.ExceptionInfo: Couldn't satisfy such-that predicate after 10 tries.
       at clojure.core$ex_info.invoke (core.clj:4403)
          clojure.test.check.generators$such_that_helper.invoke (generators.clj:257)
          clojure.test.check.generators$such_that$fn__46515.invoke (generators.clj:283)
          clojure.test.check.generators$gen_bind$fn__46460.invoke (generators.clj:77)
          clojure.test.check.generators$gen_bind$fn__46460.invoke (generators.clj:79)
          clojure.test.check.generators$gen_bind$fn__46460.invoke (generators.clj:77)
          clojure.test.check.generators$gen_fmap$fn__46455.invoke (generators.clj:70)
          clojure.test.check.generators$call_gen.invoke (generators.clj:56)
          clojure.test.check$quick_check.doInvoke (check.clj:57)
          clojure.lang.RestFn.invoke (RestFn.java:425)
          clojure.lang.AFn.applyToHelper (AFn.java:156)
          clojure.lang.RestFn.applyTo (RestFn.java:132)
          clojure.core$apply.invoke (core.clj:628)
          puppetlabs.puppetdb.zip_test$post_order_collect.doInvoke (zip_test.clj:87)
          clojure.lang.RestFn.invoke (RestFn.java:410)
          puppetlabs.puppetdb.zip_test$post_order_collect.invoke (zip_test.clj:87)
          puppetlabs.puppetdb.zip_test/fn (zip_test.clj:87)
          clojure.test$test_var$fn__7187.invoke (test.clj:704)
          clojure.test$test_var.invoke (test.clj:704)
          clojure.test$test_vars$fn__7209$fn__7214.invoke (test.clj:722)
          clojure.test$default_fixture.invoke (test.clj:674)
          clojure.test$test_vars$fn__7209.invoke (test.clj:722)
          clojure.test$default_fixture.invoke (test.clj:674)
          clojure.test$test_vars.invoke (test.clj:718)
          clojure.test$test_all_vars.invoke (test.clj:728)
          clojure.test$test_ns.invoke (test.clj:747)
          clojure.core$map$fn__4245.invoke (core.clj:2559)
          clojure.lang.LazySeq.sval (LazySeq.java:40)
          clojure.lang.LazySeq.seq (LazySeq.java:49)
          clojure.lang.Cons.next (Cons.java:39)
          clojure.lang.RT.next (RT.java:598)
          clojure.core$next.invoke (core.clj:64)
          clojure.core$reduce1.invoke (core.clj:903)
          clojure.core$reduce1.invoke (core.clj:894)
          clojure.core$merge_with.doInvoke (core.clj:2777)
          clojure.lang.RestFn.applyTo (RestFn.java:139)
          clojure.core$apply.invoke (core.clj:626)
          clojure.test$run_tests.doInvoke (test.clj:762)
          clojure.lang.RestFn.applyTo (RestFn.java:137)
          clojure.core$apply.invoke (core.clj:624)
          user$eval85$fn__149$fn__183.invoke (form-init1223621728024607371.clj:1)
          user$eval85$fn__149$fn__150.invoke (form-init1223621728024607371.clj:1)
          user$eval85$fn__149.invoke (form-init1223621728024607371.clj:1)
          user$eval85.invoke (form-init1223621728024607371.clj:1)
          clojure.lang.Compiler.eval (Compiler.java:6703)
          clojure.lang.Compiler.eval (Compiler.java:6693)
          clojure.lang.Compiler.load (Compiler.java:7130)
          clojure.lang.Compiler.loadFile (Compiler.java:7086)
          clojure.main$load_script.invoke (main.clj:274)
          clojure.main$init_opt.invoke (main.clj:279)
          clojure.main$initialize.invoke (main.clj:307)
          clojure.main$null_opt.invoke (main.clj:342)
          clojure.main$main.doInvoke (main.clj:420)
          clojure.lang.RestFn.invoke (RestFn.java:421)
          clojure.lang.Var.invoke (Var.java:383)
          clojure.lang.AFn.applyToHelper (AFn.java:156)
          clojure.lang.Var.applyTo (Var.java:700)
          clojure.main.main (main.java:37)
      {:test-var no-op-zipper, :result true, :num-tests 50, :seed 1421162187500}
      {:test-var flip-sign-zipper, :result true, :num-tests 50, :seed 1421162191702}
      

      For example: https://travis-ci.org/puppetlabs/puppetdb/jobs/46861070

        Attachments

          Activity

            jsd-sla-details-panel

              People

              • Assignee:
                ryan.senior Ryan Senior
                Reporter:
                ken Ken Barber
                QA Contact:
                Kurt Wall
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: