Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Don't loop tests over 10000 times.

  • Loading branch information...
commit f138d9daf5dedcb06ec82687f6520dfd49469791 1 parent 4109fc6
Caleb James DeLisle authored
View
2  benc/serialization/standard/test/benc_serializeString_test.c
@@ -65,12 +65,10 @@ int main()
{
char out[512];
struct Allocator* alloc = CanaryAllocator_new(MallocAllocator_new(1<<20), NULL);
- for (int i = 0; i < 10000; i++) {
struct Writer* writer = ArrayWriter_new(out, 512, alloc);
struct Reader* reader = ArrayReader_new(out, 512, alloc);
testSerialize(writer, reader);
testParse(writer, reader, alloc);
- }
Allocator_free(alloc);
}
View
2  dht/dhtcore/test/VersionList_test.c
@@ -24,7 +24,7 @@ int main()
struct Allocator* alloc = CanaryAllocator_new(MallocAllocator_new(1<<20), NULL);
struct Random* rand = Random_new(alloc, NULL, NULL);
- for (int cycles = 0; cycles < 10000; cycles++) {
+ for (int cycles = 0; cycles < 1; cycles++) {
for (int bytes = 1; bytes < 5; bytes++) {
uint32_t count = Random_uint32(rand) % 30;
uint32_t max = Random_uint32(rand) % UINT32_MAX >> ((4-bytes) * 8);
Please sign in to comment.
Something went wrong with that request. Please try again.