27 lines
682 B
C#
Raw Normal View History

2024-11-21 10:46:11 +01:00
using CodexTests;
using NUnit.Framework;
using Utils;
2024-11-21 10:03:09 +01:00
namespace CodexReleaseTests.DataTests
{
2024-11-21 10:46:11 +01:00
public class ThreeClientTest : AutoBootstrapDistTest
2024-11-21 10:03:09 +01:00
{
2024-11-21 10:46:11 +01:00
[Test]
public void ThreeClient()
{
var primary = StartCodex();
var secondary = StartCodex();
var testFile = GenerateTestFile(10.MB());
var contentId = primary.UploadFile(testFile);
AssertNodesContainFile(contentId, primary);
var downloadedFile = secondary.DownloadContent(contentId);
AssertNodesContainFile(contentId, primary, secondary);
testFile.AssertIsEqual(downloadedFile);
}
2024-11-21 10:03:09 +01:00
}
}