Skip to content

Commit

Permalink
Merge pull request #4218 from vespa-engine/aressem/make-work-with-rub…
Browse files Browse the repository at this point in the history
…y-3.3

Fix tests with new ruby 3.3 and flexmock 5
  • Loading branch information
Harald Musum authored Oct 8, 2024
2 parents da6a239 + dd79824 commit f82da99
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/test/test_system.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ def add_metric(name, value, tag)

def test_cpuutil
node = flexmock('node')
node.should_receive(:file?).and_return(true)
node.should_receive(:execute).times(2).
and_return(IO.read(File.join(File.dirname(__FILE__), "ysar_gather_output.txt")),
IO.read(File.join(File.dirname(__FILE__), "ysar_gather_output2.txt")))
Expand Down
1 change: 1 addition & 0 deletions lib/test/unit_test.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Copyright Vespa.ai. All rights reserved.
require 'assertions'
require 'test_base'

class UnitTest
include TestBase
Expand Down

0 comments on commit f82da99

Please sign in to comment.