You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by zg...@apache.org on 2018/12/24 06:29:32 UTC
hbase git commit: HBASE-21631 (addendum) Fixed TestQuotasShell
failure (quotas_test.rb)
Repository: hbase
Updated Branches:
refs/heads/master dbafa1be8 -> 44dec6005
HBASE-21631 (addendum) Fixed TestQuotasShell failure (quotas_test.rb)
Signed-off-by: Guanghao Zhang <zg...@apache.org>
Project: http://git-wip-us.apache.org/repos/asf/hbase/repo
Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/44dec600
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/44dec600
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/44dec600
Branch: refs/heads/master
Commit: 44dec60054d1c45880d591c74a023f7a534e6d73
Parents: dbafa1b
Author: Sakthi <sa...@gmail.com>
Authored: Sun Dec 23 21:25:07 2018 -0800
Committer: Guanghao Zhang <zg...@apache.org>
Committed: Mon Dec 24 14:15:59 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/44dec600/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 be6b238..295d545 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}"))