diff options
author | Chris Chambers <ccgithub@chrischambers.net> | 2015-08-20 11:01:59 -0500 |
---|---|---|
committer | Chris Chambers <ccgithub@chrischambers.net> | 2015-08-20 11:01:59 -0500 |
commit | f7ceceef34b1e949d981846d351f3c8e171b2a89 (patch) | |
tree | 26c47f442a6728ab5fb045f8943ce9cea8364542 | |
parent | 282ebe3a65d70311b1683137f2f9ddfcb4180fe9 (diff) | |
download | ohai-f7ceceef34b1e949d981846d351f3c8e171b2a89.tar.gz |
Update to use new cpustates counters instead of total_
-rw-r--r-- | spec/unit/plugins/solaris2/cpu_spec.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/unit/plugins/solaris2/cpu_spec.rb b/spec/unit/plugins/solaris2/cpu_spec.rb index 2d5716c6..4983da15 100644 --- a/spec/unit/plugins/solaris2/cpu_spec.rb +++ b/spec/unit/plugins/solaris2/cpu_spec.rb @@ -459,11 +459,11 @@ END end it "should get the total number of online cores" do - expect(@plugin["cpu"]["total_online"]).to eql (8) + expect(@plugin["cpu"]["cpustates"]["on-line"]).to eql (8) end it "should get the total number of offline cores" do - expect(@plugin["cpu"]["total_offline"]).to eql (8) + expect(@plugin["cpu"]["cpustates"]["off-line"]).to eql (8) end describe "per-cpu information" do @@ -2830,11 +2830,11 @@ END end it "should get the total number of online cores" do - expect(@plugin["cpu"]["total_online"]).to eql(124) + expect(@plugin["cpu"]["cpustates"]["on-line"]).to eql(124) end it "should get the total number of offline cores" do - expect(@plugin["cpu"]["total_offline"]).to eql(4) + expect(@plugin["cpu"]["cpustates"]["off-line"]).to eql(4) end describe "per-cpu information" do |