Explorar o código

[beeswax] Test randomly failing

A 90 value can appear in the page sometimes (e.g. results fetched in 90ms).
Look for the hex value instead and hope it won't false positive again.
Romain Rigaux %!s(int64=14) %!d(string=hai) anos
pai
achega
9810072c30
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      apps/beeswax/src/beeswax/tests.py

+ 2 - 2
apps/beeswax/src/beeswax/tests.py

@@ -118,8 +118,8 @@ class TestBeeswaxWithHadoop(BeeswaxSampleProvider):
     finish = beeswax.conf.BROWSE_PARTITIONED_TABLE_LIMIT.set_for_testing("90")
     finish = beeswax.conf.BROWSE_PARTITIONED_TABLE_LIMIT.set_for_testing("90")
     try:
     try:
       response = self.client.get("/beeswax/table/test_partitions")
       response = self.client.get("/beeswax/table/test_partitions")
-      assert_true("89" in response.content)
-      assert_false("90" in response.content)
+      assert_true("0x%x" % 89 in response.content)
+      assert_false("0x%x" % 90 in response.content)
     finally:
     finally:
       finish()
       finish()