X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=testsrc%2Fcompbio%2Fengine%2FLoadBalancerTester.java;fp=testsrc%2Fcompbio%2Fengine%2FLoadBalancerTester.java;h=f3457208035ef1f246fa44fe4a508bf13ac7eba9;hb=db5333c93e7d29d2a6eb301a017300583bc9f44c;hp=7d0661ac5b3b57879abb638f7b6de7d176c027db;hpb=338caee91f39abcaef1ae33c3468bb65f4cc3165;p=jabaws.git diff --git a/testsrc/compbio/engine/LoadBalancerTester.java b/testsrc/compbio/engine/LoadBalancerTester.java index 7d0661a..f345720 100644 --- a/testsrc/compbio/engine/LoadBalancerTester.java +++ b/testsrc/compbio/engine/LoadBalancerTester.java @@ -39,18 +39,22 @@ public class LoadBalancerTester { ClustalW clustal = new ClustalW(); /** - * ClustalW local limit is 40 sequences per 500 letters + * ClustalW local limit is 2 sequences per 500 letters */ ConfiguredExecutable confClust = Configurator .configureExecutable(clustal); ExecProvider aEngine = LoadBalancer.getEngine(confClust, data); - Limit locExec = confClust - .getLimit(PresetManager.LOCAL_ENGINE_LIMIT_PRESET); + Limit locExec = new Limit(2, 500, PresetManager.LOCAL_ENGINE_LIMIT_PRESET); + // For testing of production configuration uncomment + //Limit locExec = confClust + // .getLimit(PresetManager.LOCAL_ENGINE_LIMIT_PRESET); assertTrue(locExec.getSeqNumber() <= data.size() || locExec.getAvgSeqLength() * locExec.getSeqNumber() <= Limit .getAvgSequenceLength(data)); - - assertEquals(aEngine, ExecProvider.Cluster); + // Engine will be local because LoadBalancer accessed the presets & limits + // directly + // For testing of production configuration uncomment + // assertEquals(aEngine, ExecProvider.Cluster); } catch (JobSubmissionException e) { e.printStackTrace();