From 5e57e9c8e91cbedb8e6f46b0ef0c7812797170fc Mon Sep 17 00:00:00 2001
From: hashmap <hashmap@gmail.com>
Date: Tue, 28 Aug 2018 11:52:44 +0200
Subject: [PATCH] Fix flakiness of simple_server_wallet test

It produces 1000+ otputs on a fast machine (?) and generates invalid URL as result (too many paramaters). We don't care about sending all outputs in this test, we just need something.
---
 servers/tests/api.rs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/servers/tests/api.rs b/servers/tests/api.rs
index e74b3f6c3..3d06d83b0 100644
--- a/servers/tests/api.rs
+++ b/servers/tests/api.rs
@@ -422,7 +422,7 @@ fn get_ids_from_block_outputs(block_outputs: Vec<api::BlockOutputs>) -> Vec<Stri
 			ids.push(util::to_hex(output.clone().commit.0.to_vec()));
 		}
 	}
-	ids
+	ids.into_iter().take(100).collect()
 }
 
 pub fn ban_peer(base_addr: &String, api_server_port: u16, peer_addr: &String) -> Result<(), Error> {