Skip to content

Conversation

@wangjoshuah
Copy link
Contributor

skip the exhaustive generateBucketValueDistribution when we're not testing on Travis Linux builds

@wangjoshuah wangjoshuah requested review from onufryk and vraja2 March 10, 2017 18:34
@wangjoshuah
Copy link
Contributor Author

@optimizely/fullstack-devs

Copy link
Contributor

@onufryk onufryk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome, 0.783 secs

import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.*;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's use explicit imports

import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.verify;
import static org.mockito.Mockito.when;
import static org.junit.Assert.*;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

explicit imports

@Test
@Category(ExhaustiveTest.class)
public void generateBucketValueDistribution() throws Exception {
Assume.assumeTrue(System.getProperty("os.name").contains("Linux"));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

http://docs.oracle.com/javase/6/docs/api/java/lang/System.html#getenv(java.lang.String)

we could use an environment variable RUN_EXHAUSTIVE_BUCKETING

Copy link
Contributor

@vraja2 vraja2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good, just fix the imports

@wangjoshuah wangjoshuah merged commit eeb820c into devel Mar 10, 2017
@wangjoshuah wangjoshuah deleted the josh.wang/differentiate_linux_tests branch March 10, 2017 21:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants