add sets up
This commit is contained in:
@@ -101,11 +101,9 @@ func TestGetPrice(t *testing.T) {
|
||||
t.Run("uses first profile if selected is nil", func(t *testing.T) {
|
||||
start := time.Now()
|
||||
end := start.Add(30 * time.Minute)
|
||||
mock := &MockPricingProfile{ReturnCost: 42.0}
|
||||
r := &resources.PricedResource{
|
||||
PricingProfiles: []pricing.PricingProfileITF{mock},
|
||||
UsageStart: &start,
|
||||
UsageEnd: &end,
|
||||
UsageStart: &start,
|
||||
UsageEnd: &end,
|
||||
}
|
||||
price, err := r.GetPrice()
|
||||
require.NoError(t, err)
|
||||
|
||||
Reference in New Issue
Block a user