summaryrefslogtreecommitdiffstats
path: root/container-search/src/test/java/com/yahoo/search/federation/FederationResultTest.java
diff options
context:
space:
mode:
authorJon Bratseth <bratseth@yahoo-inc.com>2017-03-27 21:58:35 +0200
committerJon Bratseth <bratseth@yahoo-inc.com>2017-03-27 21:58:35 +0200
commitf8b6de5525ed32a8f7c026a2bb09ea4ce9ff7440 (patch)
treeff88aabee0694947f8c51abd98bf895d5aa421e0 /container-search/src/test/java/com/yahoo/search/federation/FederationResultTest.java
parentc44b13002178b7b21fb4565a53eae0aabed80f08 (diff)
Increase timeout because factory is so slow
Diffstat (limited to 'container-search/src/test/java/com/yahoo/search/federation/FederationResultTest.java')
-rw-r--r--container-search/src/test/java/com/yahoo/search/federation/FederationResultTest.java22
1 files changed, 11 insertions, 11 deletions
diff --git a/container-search/src/test/java/com/yahoo/search/federation/FederationResultTest.java b/container-search/src/test/java/com/yahoo/search/federation/FederationResultTest.java
index eb17cf27db9..ae05ea9968c 100644
--- a/container-search/src/test/java/com/yahoo/search/federation/FederationResultTest.java
+++ b/container-search/src/test/java/com/yahoo/search/federation/FederationResultTest.java
@@ -24,22 +24,22 @@ import static org.junit.Assert.assertEquals;
*/
public class FederationResultTest {
- private static final FederationSearcher.Target organic = new MockTarget("organic", 250);
- private static final FederationSearcher.Target dsp1 = new MockTarget("dsp1", 120);
- private static final FederationSearcher.Target dsp2 = new MockTarget("dsp2", 100);
+ private static final FederationSearcher.Target organic = new MockTarget("organic", 500);
+ private static final FederationSearcher.Target dsp1 = new MockTarget("dsp1", 240);
+ private static final FederationSearcher.Target dsp2 = new MockTarget("dsp2", 200);
private final Clock clock = Clock.systemUTC();
@Test
public void testFederationResult() {
- assertTimeout(ImmutableSet.of(), 50, 100, 90);
- assertTimeout(ImmutableSet.of(), 240, 200, 200);
- assertTimeout(ImmutableSet.of("dsp1"), 130, 140, 110);
- assertTimeout(ImmutableSet.of("organic"), 260, 80, 80);
- assertTimeout(ImmutableSet.of("dsp2"), 100, 110, 115);
- assertTimeout(ImmutableSet.of(), 100, 110, 105);
- assertTimeout(ImmutableSet.of("dsp1", "dsp2"), 100, 130, 130);
- assertTimeout(ImmutableSet.of("organic"), 260, 130, 130);
+ assertTimeout(ImmutableSet.of(), 100, 200, 180);
+ assertTimeout(ImmutableSet.of(), 480, 400, 400);
+ assertTimeout(ImmutableSet.of("dsp1"), 260, 280, 220);
+ assertTimeout(ImmutableSet.of("organic"), 520, 160, 160);
+ assertTimeout(ImmutableSet.of("dsp2"), 200, 220, 230);
+ assertTimeout(ImmutableSet.of(), 200, 220, 210);
+ assertTimeout(ImmutableSet.of("dsp1", "dsp2"), 200, 260, 260);
+ assertTimeout(ImmutableSet.of("organic"), 520, 260, 260);
}
private void assertTimeout(Set<String> expectedTimeoutNames, int ... responseTimes) {