bbfsdev / bbfs

Big brother file system (distributed file system)
14 stars 5 forks source link

Time Modification Test test modify test fails on first attemp. Then it passes. #258

Open yarondbb opened 10 years ago

yarondbb commented 10 years ago

Details: on first attemp we get the below error. Then it always passes:

Failures:

1) Time Modification Test test modify Failure/Error: mod_db.should == indexer.indexed_content expected: 4 38a7cf60ea0efe9a00edf17bd0ff8f853dc7c064,3500,1306527039 f07293e62687aa41dbd54e3bdf622947074361ba,10500,1306527039 366c1073776db2ea1c8bf16fbf8e148d4dd76b38,5,1306527039 63376f415002142d09ac86dc46bffdaabd0ff4cf,7000,1306527039 10 38a7cf60ea0efe9a00edf17bd0ff8f853dc7c064,3500,f1.test.kbb1.com,/home/yarondbb/git/bbfs/spec/file_utils/time_modification_test/test_file.500.0,1306527039 38a7cf60ea0efe9a00edf17bd0ff8f853dc7c064,3500,f1.test.kbb1.com,/home/yarondbb/git/bbfs/spec/file_utils/time_modification_test/test_file.500.1,1306527039 38a7cf60ea0efe9a00edf17bd0ff8f853dc7c064,3500,f1.test.kbb1.com,/home/yarondbb/git/bbfs/spec/file_utils/time_modification_test/test_file.500,1306527039 f07293e62687aa41dbd54e3bdf622947074361ba,10500,f1.test.kbb1.com,/home/yarondbb/git/bbfs/spec/file_utils/time_modification_test/test_file.1500,1306527039 f07293e62687aa41dbd54e3bdf622947074361ba,10500,f1.test.kbb1.com,/home/yarondbb/git/bbfs/spec/file_utils/time_modification_test/test_file.1500.0,1306527039 f07293e62687aa41dbd54e3bdf622947074361ba,10500,f1.test.kbb1.com,/home/yarondbb/git/bbfs/spec/file_utils/time_modification_test/test_file.1500.1,1306527039 366c1073776db2ea1c8bf16fbf8e148d4dd76b38,5,f1.test.kbb1.com,/home/yarondbb/git/bbfs/spec/file_utils/time_modification_test/local_os_test.test,1306527039 63376f415002142d09ac86dc46bffdaabd0ff4cf,7000,f1.test.kbb1.com,/home/yarondbb/git/bbfs/spec/file_utils/time_modification_test/test_file.1000.1,1306527039 63376f415002142d09ac86dc46bffdaabd0ff4cf,7000,f1.test.kbb1.com,/home/yarondbb/git/bbfs/spec/file_utils/time_modification_test/test_file.1000.0,1306527039 63376f415002142d09ac86dc46bffdaabd0ff4cf,7000,f1.test.kbb1.com,/home/yarondbb/git/bbfs/spec/file_utils/time_modification_test/test_file.1000,1306527039

        got: 4
   38a7cf60ea0efe9a00edf17bd0ff8f853dc7c064,3500,1306527039
   f07293e62687aa41dbd54e3bdf622947074361ba,10500,1306527039
   366c1073776db2ea1c8bf16fbf8e148d4dd76b38,5,1394785747
   63376f415002142d09ac86dc46bffdaabd0ff4cf,7000,1306527039
   10
   38a7cf60ea0efe9a00edf17bd0ff8f853dc7c064,3500,f1.test.kbb1.com,/home/yarondbb/git/bbfs/spec/file_utils/time_modification_test/test_file.500.0,1306527039
   38a7cf60ea0efe9a00edf17bd0ff8f853dc7c064,3500,f1.test.kbb1.com,/home/yarondbb/git/bbfs/spec/file_utils/time_modification_test/test_file.500.1,1306527039
   38a7cf60ea0efe9a00edf17bd0ff8f853dc7c064,3500,f1.test.kbb1.com,/home/yarondbb/git/bbfs/spec/file_utils/time_modification_test/test_file.500,1306527039
   f07293e62687aa41dbd54e3bdf622947074361ba,10500,f1.test.kbb1.com,/home/yarondbb/git/bbfs/spec/file_utils/time_modification_test/test_file.1500,1306527039
   f07293e62687aa41dbd54e3bdf622947074361ba,10500,f1.test.kbb1.com,/home/yarondbb/git/bbfs/spec/file_utils/time_modification_test/test_file.1500.0,1306527039
   f07293e62687aa41dbd54e3bdf622947074361ba,10500,f1.test.kbb1.com,/home/yarondbb/git/bbfs/spec/file_utils/time_modification_test/test_file.1500.1,1306527039
   366c1073776db2ea1c8bf16fbf8e148d4dd76b38,5,f1.test.kbb1.com,/home/yarondbb/git/bbfs/spec/file_utils/time_modification_test/local_os_test.test,1394785747
   63376f415002142d09ac86dc46bffdaabd0ff4cf,7000,f1.test.kbb1.com,/home/yarondbb/git/bbfs/spec/file_utils/time_modification_test/test_file.1000.1,1306527039
   63376f415002142d09ac86dc46bffdaabd0ff4cf,7000,f1.test.kbb1.com,/home/yarondbb/git/bbfs/spec/file_utils/time_modification_test/test_file.1000.0,1306527039
   63376f415002142d09ac86dc46bffdaabd0ff4cf,7000,f1.test.kbb1.com,/home/yarondbb/git/bbfs/spec/file_utils/time_modification_test/test_file.1000,1306527039
    (using ==)
   Diff:
   @@ -1,7 +1,7 @@
    4
    38a7cf60ea0efe9a00edf17bd0ff8f853dc7c064,3500,1306527039
    f07293e62687aa41dbd54e3bdf622947074361ba,10500,1306527039
   -366c1073776db2ea1c8bf16fbf8e148d4dd76b38,5,1306527039
   +366c1073776db2ea1c8bf16fbf8e148d4dd76b38,5,1394785747
    63376f415002142d09ac86dc46bffdaabd0ff4cf,7000,1306527039
    10
    38a7cf60ea0efe9a00edf17bd0ff8f853dc7c064,3500,f1.test.kbb1.com,/home/yarondbb/git/bbfs/spec/file_utils/time_modification_test/test_file.500.0,1306527039
   @@ -10,7 +10,7 @@
    f07293e62687aa41dbd54e3bdf622947074361ba,10500,f1.test.kbb1.com,/home/yarondbb/git/bbfs/spec/file_utils/time_modification_test/test_file.1500,1306527039
    f07293e62687aa41dbd54e3bdf622947074361ba,10500,f1.test.kbb1.com,/home/yarondbb/git/bbfs/spec/file_utils/time_modification_test/test_file.1500.0,1306527039
    f07293e62687aa41dbd54e3bdf622947074361ba,10500,f1.test.kbb1.com,/home/yarondbb/git/bbfs/spec/file_utils/time_modification_test/test_file.1500.1,1306527039
   -366c1073776db2ea1c8bf16fbf8e148d4dd76b38,5,f1.test.kbb1.com,/home/yarondbb/git/bbfs/spec/file_utils/time_modification_test/local_os_test.test,1306527039
   +366c1073776db2ea1c8bf16fbf8e148d4dd76b38,5,f1.test.kbb1.com,/home/yarondbb/git/bbfs/spec/file_utils/time_modification_test/local_os_test.test,1394785747
    63376f415002142d09ac86dc46bffdaabd0ff4cf,7000,f1.test.kbb1.com,/home/yarondbb/git/bbfs/spec/file_utils/time_modification_test/test_file.1000.1,1306527039
    63376f415002142d09ac86dc46bffdaabd0ff4cf,7000,f1.test.kbb1.com,/home/yarondbb/git/bbfs/spec/file_utils/time_modification_test/test_file.1000.0,1306527039
    63376f415002142d09ac86dc46bffdaabd0ff4cf,7000,f1.test.kbb1.com,/home/yarondbb/git/bbfs/spec/file_utils/time_modification_test/test_file.1000,1306527039
 # ./spec/file_utils/time_modification_spec.rb:135:in `block (3 levels) in <module:Spec>'
 # ./lib/content_data/content_data.rb:124:in `call'
 # ./lib/content_data/content_data.rb:124:in `block (2 levels) in each_instance'
 # ./lib/content_data/content_data.rb:119:in `loop'
 # ./lib/content_data/content_data.rb:119:in `block in each_instance'
 # ./lib/content_data/content_data.rb:115:in `loop'
 # ./lib/content_data/content_data.rb:115:in `each_instance'
 # ./spec/file_utils/time_modification_spec.rb:130:in `block (2 levels) in <module:Spec>'