diff options
author | Tommi Virtanen <tv@eagain.net> | 2014-02-27 09:04:49 -0800 |
---|---|---|
committer | Tommi Virtanen <tv@eagain.net> | 2014-03-13 17:10:33 -0700 |
commit | ed909b43ea7bb591ffd07e94f51bee14a6f72ac7 (patch) | |
tree | 244fe0bc3b2f17b27c7d806672087e54d3c0b5a1 /bucket_test.go | |
parent | Merge pull request #64 from benbjohnson/fix-empty-cursor-last (diff) | |
download | dedo-ed909b43ea7bb591ffd07e94f51bee14a6f72ac7.tar.gz dedo-ed909b43ea7bb591ffd07e94f51bee14a6f72ac7.tar.xz |
Skip long-running tests with go test -short
Diffstat (limited to 'bucket_test.go')
-rw-r--r-- | bucket_test.go | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/bucket_test.go b/bucket_test.go index 9ccc488..1970260 100644 --- a/bucket_test.go +++ b/bucket_test.go @@ -217,6 +217,10 @@ func TestBucketPutKeyTooLarge(t *testing.T) { // Ensure a bucket can calculate stats. func TestBucketStat(t *testing.T) { + if testing.Short() { + t.Skip("skipping test in short mode.") + } + withOpenDB(func(db *DB, path string) { db.Do(func(tx *Tx) error { // Add bucket with lots of keys. @@ -273,6 +277,10 @@ func TestBucketStat(t *testing.T) { // Ensure that a bucket can write random keys and values across multiple transactions. func TestBucketPutSingle(t *testing.T) { + if testing.Short() { + t.Skip("skipping test in short mode.") + } + index := 0 f := func(items testdata) bool { withOpenDB(func(db *DB, path string) { @@ -313,6 +321,10 @@ func TestBucketPutSingle(t *testing.T) { // Ensure that a transaction can insert multiple key/value pairs at once. func TestBucketPutMultiple(t *testing.T) { + if testing.Short() { + t.Skip("skipping test in short mode.") + } + f := func(items testdata) bool { withOpenDB(func(db *DB, path string) { // Bulk insert all values. @@ -347,6 +359,10 @@ func TestBucketPutMultiple(t *testing.T) { // Ensure that a transaction can delete all key/value pairs and return to a single leaf page. func TestBucketDeleteQuick(t *testing.T) { + if testing.Short() { + t.Skip("skipping test in short mode.") + } + f := func(items testdata) bool { withOpenDB(func(db *DB, path string) { // Bulk insert all values. |