X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=test%2Fjalview%2Fio%2FBioJsHTMLOutputTest.java;fp=test%2Fjalview%2Fio%2FBioJsHTMLOutputTest.java;h=134d84fcfbbf2367e939d80bf32ee4c601157cec;hb=bd0830d40949c8a701ef82f467e7c0e0b68aba31;hp=3e94aa98d069dd9ea39b6b2b32acad65e57eb9ad;hpb=49108f16b31dfc534aa148c2c85b85c98fbbddf8;p=jalview.git diff --git a/test/jalview/io/BioJsHTMLOutputTest.java b/test/jalview/io/BioJsHTMLOutputTest.java index 3e94aa9..134d84f 100644 --- a/test/jalview/io/BioJsHTMLOutputTest.java +++ b/test/jalview/io/BioJsHTMLOutputTest.java @@ -26,6 +26,15 @@ public class BioJsHTMLOutputTest try { bioJsHtmlOutput.updateBioJS(); + try + { + // allow the update some three seconds to complete before getting latest + // version of BioJS template + Thread.sleep(1000 * 3); + } catch (InterruptedException e) + { + e.printStackTrace(); + } bjsTemplate = BioJsHTMLOutput.getBioJsTemplateAsString(); // System.out.println(bjsTemplate); } catch (IOException e)