Attempt to fix random test failures due to examine content jobs not quite finishing.
authorCarl Hetherington <cth@carlh.net>
Wed, 3 Jun 2015 12:28:59 +0000 (13:28 +0100)
committerCarl Hetherington <cth@carlh.net>
Wed, 3 Jun 2015 12:28:59 +0000 (13:28 +0100)
test/test.cc

index 37002dce6fadd81f973d098eee9b0a1ec54aa231..7725045632380ee4191f22e9309a734bf86530fa 100644 (file)
@@ -306,6 +306,12 @@ wait_for_jobs ()
                }
        }
 
+       /* Wait for a little to make sure that examine-content jobs have had time to
+          signal the UI to do the content addition.
+          XXX: nasty
+       */
+       dcpomatic_sleep (1);
+
        signal_manager->ui_idle ();
 
        /* Discard all jobs so we lose any we just reported an error in */