Skip to content

Commit

Permalink
- Re-record all unit tests
Browse files Browse the repository at this point in the history
- Pickup buy is failing currently (API 500 error)
  • Loading branch information
nwithan8 committed Sep 8, 2022
1 parent 801d735 commit 61d4d5c
Show file tree
Hide file tree
Showing 188 changed files with 3,938 additions and 4,033 deletions.
10 changes: 10 additions & 0 deletions EasyPost.Tests/BatchTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,11 @@ public async Task TestCreateScanForm()

Batch batch = await CreateOneCallBuyBatch();

if (IsRecording()) // Yes, this is needed. Otherwise, the API says we can't modify a batch while it's being created.
{
Thread.Sleep(10000); // Wait enough time to process
}

batch = await batch.Buy();

if (IsRecording())
Expand All @@ -121,6 +126,11 @@ public async Task TestLabel()

Batch batch = await CreateOneCallBuyBatch();

if (IsRecording()) // Yes, this is needed. Otherwise, the API says we can't modify a batch while it's being created.
{
Thread.Sleep(10000); // Wait enough time to process
}

batch = await batch.Buy();

if (IsRecording())
Expand Down
2 changes: 1 addition & 1 deletion EasyPost.Tests/Fixture.cs
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ public static Dictionary<string, object> BasicPickup
{
get
{
const string pickupDate = "2022-08-25";
const string pickupDate = "2022-09-09";
return new Dictionary<string, object>
{
{ "address", BasicAddress },
Expand Down
20 changes: 10 additions & 10 deletions EasyPost.Tests/cassettes/net/address/all.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 10 additions & 10 deletions EasyPost.Tests/cassettes/net/address/create.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 9 additions & 9 deletions EasyPost.Tests/cassettes/net/address/create_and_verify.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 10 additions & 10 deletions EasyPost.Tests/cassettes/net/address/create_verify.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 61d4d5c

Please sign in to comment.