From 855f9a603e71030d26bc41ad089e9701b7f4a348 Mon Sep 17 00:00:00 2001 From: Sakthi Date: Sun, 23 Dec 2018 21:25:07 -0800 Subject: [PATCH] HBASE-21631 (addendum) Fixed TestQuotasShell failure (quotas_test.rb) --- hbase-shell/src/test/ruby/hbase/quotas_test.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/hbase-shell/src/test/ruby/hbase/quotas_test.rb b/hbase-shell/src/test/ruby/hbase/quotas_test.rb index be6b238a525aa9f9ce21e1f011dec68ee9506ec1..295d545fb6eb7c1608c0fe7c7e95e6873df4ad0e 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}")) -- 2.17.2 (Apple Git-113)