update test case, docstring for timeout

This commit is contained in:
wing328
2015-12-19 23:15:54 +08:00
parent 0aa4d2fb8e
commit 2cc5924498
8 changed files with 13 additions and 13 deletions

View File

@@ -114,7 +114,10 @@ namespace SwaggerClientTest.TestPet
[Test ()]
public void TestGetPetById ()
{
PetApi petApi = new PetApi ();
// set timeout to 10 seconds
Configuration c1 = new Configuration (timeout: 10000);
PetApi petApi = new PetApi (c1);
Pet response = petApi.GetPetById (petId);
Assert.IsInstanceOf<Pet> (response, "Response is a Pet");