Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/diaspora/diaspora.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'spec/workers/export_user_spec.rb')
-rw-r--r--spec/workers/export_user_spec.rb14
1 files changed, 0 insertions, 14 deletions
diff --git a/spec/workers/export_user_spec.rb b/spec/workers/export_user_spec.rb
index 657b801d8..0fe454201 100644
--- a/spec/workers/export_user_spec.rb
+++ b/spec/workers/export_user_spec.rb
@@ -25,14 +25,9 @@ describe Workers::ExportUser do
context "concurrency" do
before do
- AppConfig.environment.single_process_mode = false
AppConfig.settings.archive_jobs_concurrency = 1
end
- after :all do
- AppConfig.environment.single_process_mode = true
- end
-
let(:pid) { "#{Socket.gethostname}:#{Process.pid}:#{SecureRandom.hex(6)}" }
it "schedules a job for later when already another parallel export job is running" do
@@ -76,14 +71,5 @@ describe Workers::ExportUser do
Workers::ExportUser.new.perform(alice.id)
end
-
- it "runs the export when diaspora is in single process mode" do
- AppConfig.environment.single_process_mode = true
- expect(Sidekiq::Workers).not_to receive(:new)
- expect(Workers::ExportUser).not_to receive(:perform_in).with(kind_of(Integer), alice.id)
- expect(alice).to receive(:perform_export!)
-
- Workers::ExportUser.new.perform(alice.id)
- end
end
end