Skip to content

Commit 6089278

Browse files
committed
Moved pending specs from thread_pool_shared to thread_pool_executor_shared.
1 parent 0328c76 commit 6089278

File tree

2 files changed

+65
-16
lines changed

2 files changed

+65
-16
lines changed

spec/concurrent/thread_pool_executor_shared.rb

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,69 @@
99
end
1010

1111
it_should_behave_like :thread_pool
12+
13+
context '#max_queue' do
14+
15+
it 'is set to zero by default' do
16+
pending
17+
end
18+
19+
it 'returns the set value on creation' do
20+
pending
21+
end
22+
23+
it 'returns the set value when running' do
24+
pending
25+
end
26+
27+
it 'returns the set value after stopping' do
28+
pending
29+
end
30+
end
31+
32+
context '#queue_length' do
33+
34+
it 'returns zero on creation' do
35+
pending
36+
end
37+
38+
it 'returns zero when there are no enqueued tasks' do
39+
pending
40+
end
41+
42+
it 'returns the size of the queue when tasks are enqueued' do
43+
pending
44+
end
45+
46+
it 'returns zero when stopped' do
47+
pending
48+
end
49+
end
50+
51+
context '#remaining_capacity' do
52+
53+
it 'returns -1 when :max_queue is set to zero' do
54+
pending
55+
end
56+
57+
it 'returns :max_size on creation' do
58+
pending
59+
end
60+
61+
it 'returns :max_size when no tasks are enqueued' do
62+
pending
63+
end
64+
65+
it 'returns the remaining capacity when tasks are enqueued' do
66+
pending
67+
end
68+
69+
it 'returns :max_size when stopped' do
70+
pending
71+
end
72+
end
73+
74+
context '#overload_policy' do
75+
pending
76+
end
1277
end

spec/concurrent/thread_pool_shared.rb

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -54,22 +54,6 @@
5454
end
5555
end
5656

57-
context '#max_queue' do
58-
pending
59-
end
60-
61-
context '#queue_length' do
62-
pending
63-
end
64-
65-
context '#remaining_capacity' do
66-
pending
67-
end
68-
69-
context '#overload_policy' do
70-
pending
71-
end
72-
7357
context '#length' do
7458

7559
it 'returns zero on creation' do

0 commit comments

Comments
 (0)