From 48a5c789ce4a8234d60e4ce6838e52594a87bebf Mon Sep 17 00:00:00 2001 From: Olivier Raginel Date: Tue, 28 May 2024 14:45:55 -0700 Subject: [PATCH] Fix all the uses of node.in_shard?(x) where x is a multiple of 5 Differential Revision: D49900503 fbshipit-source-id: 6372c56d38d161a8a819fc3d0a0698b8ee423153 --- itchef/cookbooks/fb_helpers/spec/node_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/itchef/cookbooks/fb_helpers/spec/node_spec.rb b/itchef/cookbooks/fb_helpers/spec/node_spec.rb index 18b1304b..a9f2df68 100644 --- a/itchef/cookbooks/fb_helpers/spec/node_spec.rb +++ b/itchef/cookbooks/fb_helpers/spec/node_spec.rb @@ -149,9 +149,9 @@ expect(node.in_shard?(67)).to eq(true) end it 'should return false if we are not in shard' do - expect(node.in_shard?(65)).to eq(false) + expect(node.in_shard?(64)).to eq(false) # Should remain false on second calling - expect(node.in_shard?(65)).to eq(false) + expect(node.in_shard?(64)).to eq(false) end it 'should retain legacy overflow behaviour' do # avoid using literals so linters don't fire