[InlineData(2.5 * 1024 * 1024 * 1024, "2ssXqJM7lbdDpDNkc2GsfDbmcQ6CXdgP6/LFmLtFCT4=", true)] // 2.5 GB public async Task SupportHugeAttachment(long size, string hash, bool encrypted) { try { using (var stress = new AttachmentsBigFiles()) { await stress.SupportHugeAttachment(size, hash, encrypted); } } catch (IOException ioe) { if (ioe.Message.Contains("Stream was too long")) { throw new IOException("Not enough memory to run this test. Consider running stress tests one by one", ioe); } throw; } }
[InlineData(2.5 * 1024 * 1024 * 1024, "2ssXqJM7lbdDpDNkc2GsfDbmcQ6CXdgP6/LFmLtFCT4=")] // 2.5 GB public void BatchRequestWithLongMultiPartSections(long size, string hash) { try { using (var stress = new AttachmentsBigFiles()) { stress.BatchRequestWithLongMultiPartSections(size, hash); } } catch (IOException ioe) { if (ioe.Message.Contains("Stream was too long")) { throw new IOException("Not enough memory to run this test. Consider running stress tests one by one", ioe); } throw; } }
[InlineData(2.5 * 1024 * 1024 * 1024, "2ssXqJM7lbdDpDNkc2GsfDbmcQ6CXdgP6/LFmLtFCT4=", true)] // 2.5 GB public async Task BatchRequestWithLongMultiPartSections(long size, string hash, bool encrypted) { try { using (var stress = new AttachmentsBigFiles(Output)) { stress.SetServerDisposeTimeout(5 * 60_000); await stress.BatchRequestWithLongMultiPartSections(size, hash, encrypted); } } catch (IOException ioe) { if (ioe.Message.Contains("Stream was too long")) { throw new IOException("Not enough memory to run this test. Consider running stress tests one by one", ioe); } throw; } }