<commit_before>package rkive

import (
	check "gopkg.in/check.v1"
	"time"
)

func (s *riakSuite) TestCounter(c *check.C) {
	startt := time.Now()

	var ct *Counter
	var err error
	ct, err = s.cl.Bucket("testbucket").NewCounter("test-counter", 0)
	if err != nil {
		c.Fatal(err)
	}

	start := ct.Val()

	err = ct.Add(5)
	if err != nil {
		c.Error(err)<commit_msg>don't run counter test in CI<commit_after>package rkive

import (
	check "gopkg.in/check.v1"
	"os"
	"time"
)

func (s *riakSuite) TestCounter(c *check.C) {
	travis := os.Getenv("TRAVIS")
	werck := os.Getenv("WERCKER")
	if travis != "" || werck != "" {
		c.Skip(`The CI environment does not have "allow_mult" set to 'true'`)
	}

	startt := time.Now()

	var ct *Counter
	var err error
	ct, err = s.cl.Bucket("testbucket").NewCounter("test-counter", 0)
	if err != nil {
		c.Fatal(err)
	}

	start := ct.Val()

	err = ct.Add(5)
	if err != nil {
		c.Error(err)
{'fraction_non_alphanumeric': 0.17923497267759564, 'fraction_numerical': 0.006557377049180328, 'mean_word_length': 3.5346534653465347, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6367650', 'n_tokens_mistral': 410, 'n_tokens_neox': 385, 'n_words': 92}