some typo

This commit is contained in:
fanyang 2018-02-07 16:04:07 +08:00
parent eb57b5bea4
commit e287652a07
3 changed files with 3 additions and 3 deletions

View File

@ -148,7 +148,7 @@ type PricingModel interface {
// All prices returned by the structure should be in the same currency. // All prices returned by the structure should be in the same currency.
NodePrice(node *apiv1.Node, startTime time.Time, endTime time.Time) (float64, error) NodePrice(node *apiv1.Node, startTime time.Time, endTime time.Time) (float64, error)
// PodePrice returns a theoretical minimum priece of running a pod for a given // PodPrice returns a theoretical minimum price of running a pod for a given
// period of time on a perfectly matching machine. // period of time on a perfectly matching machine.
PodPrice(pod *apiv1.Pod, startTime time.Time, endTime time.Time) (float64, error) PodPrice(pod *apiv1.Pod, startTime time.Time, endTime time.Time) (float64, error)
} }

View File

@ -228,7 +228,7 @@ type autoprovisioningSpec struct {
extraResources map[string]resource.Quantity extraResources map[string]resource.Quantity
} }
// Mig implements NodeGroup interfrace. // Mig implements NodeGroup interface.
type Mig struct { type Mig struct {
GceRef GceRef

View File

@ -89,7 +89,7 @@ func TestGetNodePrice(t *testing.T) {
node6 := BuildTestNode("sillyname6", 1000, 3750*1024*1024) node6 := BuildTestNode("sillyname6", 1000, 3750*1024*1024)
price6, err := model.NodePrice(node6, now, now.Add(time.Hour)) price6, err := model.NodePrice(node6, now, now.Add(time.Hour))
assert.NoError(t, err) assert.NoError(t, err)
// 8 times smaller node shoul be 8 times less expensive. // 8 times smaller node should be 8 times less expensive.
assert.True(t, math.Abs(price3-8*price6) < 0.1) assert.True(t, math.Abs(price3-8*price6) < 0.1)
} }