Skip to content

Commit

Permalink
Fix TestUsage unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
const-cloudinary authored Jan 27, 2020
1 parent d7d7da5 commit ce4bbf9
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions Shared.IntegrationTests/AdminApi/UsageReportTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,7 @@ public async Task TestUsageAsync()

private void AssertUsageResult(UsageResult result)
{
var plans = new List<string>() { "Free", "Advanced" };

Assert.True(plans.Contains(result.Plan));
Assert.True(result.Resources > 0);
Assert.True(result.Objects.Used < result.Objects.Limit);
Assert.True(result.Bandwidth.Used < result.Bandwidth.Limit);
Assert.NotNull(result.LastUpdated);
}
}
}

0 comments on commit ce4bbf9

Please sign in to comment.