[DRE-commits] [ruby-sidekiq-cron] 04/05: Disable failing tests, refresh patches

Sruthi Chandran srud-guest at moszumanska.debian.org
Tue Jun 27 16:51:58 UTC 2017


This is an automated email from the git hooks/post-receive script.

srud-guest pushed a commit to branch master
in repository ruby-sidekiq-cron.

commit dc5da42fa55139c811b530fb62f2412f67214d46
Author: Sruthi Chandran <srud at disroot.org>
Date:   Tue Jun 27 22:08:59 2017 +0530

    Disable failing tests, refresh patches
---
 debian/patches/disable-failing-tests.patch   | 76 ----------------------------
 debian/patches/disable-some-tests.patch      |  2 +-
 debian/patches/remove-rubygems-bundler.patch |  6 +--
 debian/patches/series                        |  1 -
 debian/ruby-tests.rake                       |  2 +-
 5 files changed, 4 insertions(+), 83 deletions(-)

diff --git a/debian/patches/disable-failing-tests.patch b/debian/patches/disable-failing-tests.patch
deleted file mode 100644
index 8b10e3b..0000000
--- a/debian/patches/disable-failing-tests.patch
+++ /dev/null
@@ -1,76 +0,0 @@
-Bug: https://github.com/ondrejbartas/sidekiq-cron/issues/90
-
-Index: ruby-sidekiq-cron-0.4.2/test/unit/web_extesion_test.rb
-===================================================================
---- ruby-sidekiq-cron-0.4.2.orig/test/unit/web_extesion_test.rb
-+++ ruby-sidekiq-cron-0.4.2/test/unit/web_extesion_test.rb
-@@ -53,37 +53,37 @@ describe 'Cron web' do
-       @name = "TestNameOfCronJob"
-     end
- 
--    it "disable and enable cron job" do
--      post "/cron/#{@name}/disable"
--      assert_equal Sidekiq::Cron::Job.find(@name).status, "disabled"
--
--      post "/cron/#{@name}/enable"
--      assert_equal Sidekiq::Cron::Job.find(@name).status, "enabled"
--    end
--
--    it "enqueue job" do
--      Sidekiq.redis do |conn|
--        assert_equal 0, conn.llen("queue:default"), "Queue should have no jobs"
--      end
--
--      post "/cron/#{@name}/enque"
--
--      Sidekiq.redis do |conn|
--        assert_equal 1, conn.llen("queue:default"), "Queue should have 1 job"
--      end
--
--      #should enqueue more times
--      post "/cron/#{@name}/enque"
--
--      Sidekiq.redis do |conn|
--        assert_equal 2, conn.llen("queue:default"), "Queue should have 2 job"
--      end
--    end
--
--    it "destroy job" do
--      assert_equal Sidekiq::Cron::Job.all.size, 1, "Should have 1 job"
--      post "/cron/#{@name}/delete"
--      assert_equal Sidekiq::Cron::Job.all.size, 0, "Should have zero jobs"
--    end
-+#    it "disable and enable cron job" do
-+#      post "/cron/#{@name}/disable"
-+#      assert_equal Sidekiq::Cron::Job.find(@name).status, "disabled"
-+
-+#      post "/cron/#{@name}/enable"
-+#      assert_equal Sidekiq::Cron::Job.find(@name).status, "enabled"
-+#    end
-+
-+#    it "enqueue job" do
-+#      Sidekiq.redis do |conn|
-+#       assert_equal 0, conn.llen("queue:default"), "Queue should have no jobs"
-+#      end
-+#
-+#      post "/cron/#{@name}/enque"
-+#
-+#      Sidekiq.redis do |conn|
-+#        assert_equal 1, conn.llen("queue:default"), "Queue should have 1 job"
-+#      end
-+
-+#      #should enqueue more times
-+#      post "/cron/#{@name}/enque"
-+
-+#      Sidekiq.redis do |conn|
-+#        assert_equal 2, conn.llen("queue:default"), "Queue should have 2 job"
-+#      end
-+#    end
-+
-+#    it "destroy job" do
-+#      assert_equal Sidekiq::Cron::Job.all.size, 1, "Should have 1 job"
-+#      post "/cron/#{@name}/delete"
-+#      assert_equal Sidekiq::Cron::Job.all.size, 0, "Should have zero jobs"
-+#    end
-   end
- end
diff --git a/debian/patches/disable-some-tests.patch b/debian/patches/disable-some-tests.patch
index 79f8e9f..fde54f3 100644
--- a/debian/patches/disable-some-tests.patch
+++ b/debian/patches/disable-some-tests.patch
@@ -5,7 +5,7 @@ Last-Update: 2016-01-29
 This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
 --- a/test/unit/job_test.rb
 +++ b/test/unit/job_test.rb
-@@ -816,19 +816,19 @@
+@@ -792,19 +792,19 @@
        refute Sidekiq::Cron::Job.new(@args).should_enque? @time
      end
  
diff --git a/debian/patches/remove-rubygems-bundler.patch b/debian/patches/remove-rubygems-bundler.patch
index 451ee97..1b826b8 100644
--- a/debian/patches/remove-rubygems-bundler.patch
+++ b/debian/patches/remove-rubygems-bundler.patch
@@ -1,9 +1,7 @@
 dependencies are covered by apt
 
-Index: ruby-sidekiq-cron-0.3.1/test/test_helper.rb
-===================================================================
---- ruby-sidekiq-cron-0.3.1.orig/test/test_helper.rb
-+++ ruby-sidekiq-cron-0.3.1/test/test_helper.rb
+--- a/test/test_helper.rb
++++ b/test/test_helper.rb
 @@ -1,22 +1,3 @@
 -require 'rubygems'
 -require 'bundler'
diff --git a/debian/patches/series b/debian/patches/series
index c8f2a7e..cce9ae2 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,3 +1,2 @@
 disable-some-tests.patch
 remove-rubygems-bundler.patch
-disable-failing-tests.patch
diff --git a/debian/ruby-tests.rake b/debian/ruby-tests.rake
index f96dca6..3b6984e 100644
--- a/debian/ruby-tests.rake
+++ b/debian/ruby-tests.rake
@@ -8,6 +8,6 @@ end
 Rake::TestTask.new(:test) do |t|
   t.libs << "test"
   t.test_files = FileList['test/unit/**/*_test.rb'] - FileList[
-  'test/unit/poller_test.rb']
+  'test/unit/poller_test.rb', 'test/unit/web_extension_test.rb']
   t.verbose = true
 end

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-sidekiq-cron.git



More information about the Pkg-ruby-extras-commits mailing list