From 7e04ee16c7f0f60bd23727106ac31013fc5be3ad Mon Sep 17 00:00:00 2001 From: husharp Date: Mon, 10 Jul 2023 15:01:18 +0800 Subject: [PATCH] test ci Signed-off-by: husharp --- .../resource_group/controller/model_test.go | 24 +------------------ 1 file changed, 1 insertion(+), 23 deletions(-) diff --git a/client/resource_group/controller/model_test.go b/client/resource_group/controller/model_test.go index 94007485520c..17a445c7f0fd 100644 --- a/client/resource_group/controller/model_test.go +++ b/client/resource_group/controller/model_test.go @@ -22,29 +22,7 @@ import ( ) func TestGetRUValueFromConsumption(t *testing.T) { - // Positive test case - re := require.New(t) - custom := &rmpb.Consumption{RRU: 2.5, WRU: 3.5} - typ := rmpb.RequestUnitType_RU - expected := float64(6) - - result := getRUValueFromConsumption(custom, typ) - re.Equal(expected, result) - - // When custom is nil - custom = nil - expected = float64(0) - - result = getRUValueFromConsumption(custom, typ) - re.Equal(expected, result) - - // When typ is not RU - custom = &rmpb.Consumption{RRU: 2.5, WRU: 3.5} - typ = rmpb.RequestUnitType_RU - expected = float64(0) - - result = getRUValueFromConsumption(custom, typ) - re.Equal(expected, result) + require.True(t, false) } func TestGetRUTokenBucketSetting(t *testing.T) {