Repository: hbase Updated Branches: refs/heads/branch-2.1 bfd75d81f -> f12c4ac24
HBASE-21631 (addendum) Fixed TestQuotasShell failure (quotas_test.rb) Signed-off-by: Guanghao Zhang <[email protected]> Project: http://git-wip-us.apache.org/repos/asf/hbase/repo Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/f12c4ac2 Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/f12c4ac2 Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/f12c4ac2 Branch: refs/heads/branch-2.1 Commit: f12c4ac241978871b99f42a7f8511f69e5bafa0e Parents: bfd75d8 Author: Sakthi <[email protected]> Authored: Sun Dec 23 21:25:07 2018 -0800 Committer: Guanghao Zhang <[email protected]> Committed: Mon Dec 24 14:39:10 2018 +0800 ---------------------------------------------------------------------- hbase-shell/src/test/ruby/hbase/quotas_test.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/hbase/blob/f12c4ac2/hbase-shell/src/test/ruby/hbase/quotas_test.rb ---------------------------------------------------------------------- diff --git a/hbase-shell/src/test/ruby/hbase/quotas_test.rb b/hbase-shell/src/test/ruby/hbase/quotas_test.rb index 3fb00c8..fe4fb28 100644 --- a/hbase-shell/src/test/ruby/hbase/quotas_test.rb +++ b/hbase-shell/src/test/ruby/hbase/quotas_test.rb @@ -99,8 +99,7 @@ module Hbase define_test 'can set and remove quota' do command(:set_quota, TYPE => SPACE, LIMIT => '1G', POLICY => NO_INSERTS, TABLE => @test_name) output = capture_stdout{ command(:list_quotas) } - size = 1024 * 1024 * 1024 - assert(output.include?("LIMIT => #{size}")) + assert(output.include?("LIMIT => 1G")) assert(output.include?("VIOLATION_POLICY => NO_INSERTS")) assert(output.include?("TYPE => SPACE")) assert(output.include?("TABLE => #{@test_name}"))
