Skip to content

Commit 5a59ee4

Browse files
remove unnecessary stubbing
1 parent f8d081d commit 5a59ee4

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

test/pid_controller_test.rb

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,6 @@ class TestPIDController < Minitest::Test
77
include TimeHelper
88

99
def setup
10-
# Fix the initial time for all tests
11-
@initial_time = 1000.0
12-
Process.stubs(:clock_gettime).with(Process::CLOCK_MONOTONIC).returns(@initial_time)
13-
1410
@controller = Semian::PIDController.new(
1511
name: "test_controller",
1612
kp: 1.0,
@@ -23,7 +19,6 @@ def setup
2319

2420
def teardown
2521
@controller.reset
26-
Process.unstub(:clock_gettime) if Process.stubbed?(:clock_gettime)
2722
end
2823

2924
def test_initialization

0 commit comments

Comments
 (0)