3 files changed +0
-22
lines changed Original file line number Diff line number Diff line change @@ -161,7 +161,6 @@ def run_event_loop
161
161
reparse_run = Puppet ::Scheduler . create_job ( Puppet [ :filetimeout ] ) do
162
162
Puppet . settings . reparse_config_files
163
163
agent_run . run_interval = Puppet [ :runinterval ]
164
- agent_run . splay_limit = Puppet [ :splaylimit ] if Puppet [ :splay ]
165
164
if Puppet [ :filetimeout ] == 0
166
165
reparse_run . disable
167
166
else
Original file line number Diff line number Diff line change @@ -23,15 +23,6 @@ def ready?(time)
23
23
end
24
24
end
25
25
26
- # Recalculates splay.
27
- #
28
- # @param splay_limit [Integer] the maximum time (in seconds) to delay before an agent's first run.
29
- # @return @splay [Integer] a random integer less than or equal to the splay limit that represents the seconds to
30
- # delay before next agent run.
31
- def splay_limit = ( splay_limit )
32
- @splay = calculate_splay ( splay_limit )
33
- end
34
-
35
26
private
36
27
37
28
def calculate_splay ( limit )
Original file line number Diff line number Diff line change @@ -86,18 +86,6 @@ def run_loop(jobs)
86
86
daemon . start
87
87
expect ( scheduler . jobs [ 0 ] ) . not_to be_enabled
88
88
end
89
-
90
- it "recalculates splay if splaylimit changes" do
91
- # Set file timeout so the daemon reparses
92
- Puppet [ :filetimeout ] = 1
93
- Puppet [ :splay ] = true
94
- allow ( agent ) . to receive ( :run )
95
- daemon . start
96
- first_splay = scheduler . jobs [ 1 ] . splay
97
- allow ( Kernel ) . to receive ( :rand ) . and_return ( 1738 )
98
- scheduler . jobs [ 0 ] . run ( Time . now )
99
- expect ( scheduler . jobs [ 1 ] . splay ) . to_not eq ( first_splay )
100
- end
101
89
end
102
90
103
91
describe "when stopping" do
0 commit comments