File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed
core-api/src/test/java/com/optimizely/ab/bucketing Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 6
6
install : true
7
7
script :
8
8
- " ./gradlew clean"
9
+ - " ./gradlew exhaustiveTest"
9
10
- " if [[ -n $TRAVIS_TAG ]]; then
10
11
./gradlew ship;
11
12
else
Original file line number Diff line number Diff line change 16
16
*/
17
17
package com .optimizely .ab .bucketing ;
18
18
19
+ import ch .qos .logback .classic .Level ;
19
20
import com .optimizely .ab .bucketing .internal .MurmurHash3 ;
20
21
import com .optimizely .ab .categories .ExhaustiveTest ;
21
22
import com .optimizely .ab .config .Experiment ;
22
23
import com .optimizely .ab .config .ProjectConfig ;
23
24
import com .optimizely .ab .config .TrafficAllocation ;
24
25
import com .optimizely .ab .config .Variation ;
25
26
import com .optimizely .ab .internal .LogbackVerifier ;
26
-
27
+ import edu .umd .cs .findbugs .annotations .SuppressFBWarnings ;
28
+ import org .junit .Assume ;
27
29
import org .junit .Rule ;
28
30
import org .junit .Test ;
29
31
import org .junit .experimental .categories .Category ;
36
38
import java .util .Map ;
37
39
import java .util .concurrent .atomic .AtomicInteger ;
38
40
39
- import ch .qos .logback .classic .Level ;
40
- import edu .umd .cs .findbugs .annotations .SuppressFBWarnings ;
41
-
42
41
import static com .optimizely .ab .config .ProjectConfigTestUtils .validProjectConfigV2 ;
43
42
import static org .hamcrest .CoreMatchers .is ;
44
43
import static org .hamcrest .MatcherAssert .assertThat ;
@@ -79,6 +78,7 @@ public void generateBucketValueForNegativeHashCodes() throws Exception {
79
78
@ Test
80
79
@ Category (ExhaustiveTest .class )
81
80
public void generateBucketValueDistribution () throws Exception {
81
+ Assume .assumeTrue (Boolean .valueOf (System .getenv ("CI" )));
82
82
long lowerHalfCount = 0 ;
83
83
long totalCount = 0 ;
84
84
int outOfRangeCount = 0 ;
You can’t perform that action at this time.
0 commit comments