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) {