From 206b653029c90268175d5b7c897c3b30505f4b77 Mon Sep 17 00:00:00 2001 From: Stephen Sawchuk Date: Thu, 6 Aug 2015 15:23:00 -0400 Subject: [PATCH] system tests: remove duplicate tests --- system-test/bigquery.js | 24 ------------------------ system-test/datastore.js | 13 +------------ system-test/search.js | 8 -------- system-test/storage.js | 21 --------------------- 4 files changed, 1 insertion(+), 65 deletions(-) diff --git a/system-test/bigquery.js b/system-test/bigquery.js index fe087ab7467..e1dc45e1599 100644 --- a/system-test/bigquery.js +++ b/system-test/bigquery.js @@ -139,14 +139,6 @@ describe('BigQuery', function() { }); }); - it('should list datasets with autoPaginate', function(done) { - bigquery.getDatasets(function(err, datasets) { - assert(datasets.length > 0); - assert(datasets[0] instanceof Dataset); - done(); - }); - }); - it('should list datasets as a stream', function(done) { var datasetEmitted = false; @@ -237,14 +229,6 @@ describe('BigQuery', function() { }); }); - it('should list jobs with autoPaginate', function(done) { - bigquery.getJobs(function(err, jobs) { - assert.ifError(err); - assert(jobs[0] instanceof Job); - done(); - }); - }); - it('should list jobs as a stream', function(done) { var jobEmitted = false; @@ -319,14 +303,6 @@ describe('BigQuery', function() { }); }); - it('should get the rows in a table with autoPaginate', function(done) { - table.getRows(function(err, rows) { - assert.ifError(err); - assert(Array.isArray(rows)); - done(); - }); - }); - it('should get the rows in a table via stream', function(done) { table.getRows() .on('error', done) diff --git a/system-test/datastore.js b/system-test/datastore.js index 566c01c1f55..2203990b74e 100644 --- a/system-test/datastore.js +++ b/system-test/datastore.js @@ -327,18 +327,7 @@ describe('datastore', function() { }); }); - it('should run query with autoPaginate', function(done) { - var q = ds.createQuery('Character') - .hasAncestor(ancestor); - - ds.runQuery(q, function(err, results) { - assert.ifError(err); - assert.equal(results.length, characters.length); - done(); - }); - }); - - it('should not go over a limit with autoPaginate', function(done) { + it('should not go over a limit', function(done) { var limit = 3; var q = ds.createQuery('Character') diff --git a/system-test/search.js b/system-test/search.js index 8ecfc333e2b..74fa42731d8 100644 --- a/system-test/search.js +++ b/system-test/search.js @@ -98,14 +98,6 @@ describe('Search', function() { }); }); - it('should get all indexes with autoPaginate', function(done) { - search.getIndexes({ autoPaginate: true }, function(err, indexes) { - assert.ifError(err); - assert(indexes.length > 0); - done(); - }); - }); - it('should get all indexes in stream mode', function(done) { var resultsMatched = 0; diff --git a/system-test/storage.js b/system-test/storage.js index 2be08dba6a7..cc86c2012f2 100644 --- a/system-test/storage.js +++ b/system-test/storage.js @@ -409,18 +409,6 @@ describe('storage', function() { }); }); - it('should get buckets with autoPaginate', function(done) { - storage.getBuckets({ - autoPaginate: true - }, function(err, buckets) { - assert.ifError(err); - - assert(buckets.length > 0); - assert(buckets[0] instanceof Bucket); - done(); - }); - }); - it('should get buckets as a stream', function(done) { var bucketEmitted = false; @@ -776,15 +764,6 @@ describe('storage', function() { }); }); - it('should get files with autoPaginate', function(done) { - bucket.getFiles({ autoPaginate: true }, function(err, files) { - assert.ifError(err); - assert.strictEqual(files.length, filenames.length); - assert(files[0] instanceof File); - done(); - }); - }); - it('should get files as a stream', function(done) { var fileEmitted = false;