diff --git a/samples/client/petstore/objc/PetstoreClient/PetstoreClientTests/PetApiTest.m b/samples/client/petstore/objc/PetstoreClient/PetstoreClientTests/PetApiTest.m index b7a3f064993c..7ad03afee1a1 100644 --- a/samples/client/petstore/objc/PetstoreClient/PetstoreClientTests/PetApiTest.m +++ b/samples/client/petstore/objc/PetstoreClient/PetstoreClientTests/PetApiTest.m @@ -62,7 +62,7 @@ if(error) { XCTFail(@"got error %@", error); } - [api getPetByIdWithCompletionBlock:@1000 completionHandler:^(SWGPet *output, NSError *error) { + [api getPetByIdWithCompletionBlock:[pet _id] completionHandler:^(SWGPet *output, NSError *error) { if(error) { XCTFail(@"got error %@", error); }