HakanL / shippo-csharp-client

Shipping API C# library (USPS, FedEx, UPS and more)
https://goshippo.com/docs
Apache License 2.0
5 stars 1 forks source link

Fix the failing unit test #4

Closed HakanL closed 6 years ago

HakanL commented 7 years ago

TestValidPurchase in BatchTest.cs still fails, getting an error back from GoShippo saying the carrier account id isn't found. But it's the same id that is returned by the method to list all carrier accounts. And it's the same id that is assigned to shipments when not created in a batch.

HakanL commented 6 years ago

After being in contact with GoShippo support it seems that some of the batch functionality doesn't have good support for test mode (the "master" USPS carrier account that is used by TestValidPurchase is only available in PROD, even if it's returned by the GetCarrier method, and that's why we get an error when running this unit test). If I switch the master USPS account (on my account) over to test mode then I'm able to execute the unit test fine, so I'm going to close this issue as it's related to GoShippo's service, not this SDK/library.