mirror of
https://github.com/logos-storage/logos-storage-nim-cs-dist-tests.git
synced 2026-07-02 05:09:29 +00:00
27 lines
710 B
C#
27 lines
710 B
C#
using LogosStorageTests;
|
|
using NUnit.Framework;
|
|
using Utils;
|
|
|
|
namespace LogosStorageReleaseTests.DataTests
|
|
{
|
|
public class ThreeClientTest : AutoBootstrapDistTest
|
|
{
|
|
[Test]
|
|
public void ThreeClient()
|
|
{
|
|
var primary = StartLogosStorage();
|
|
var secondary = StartLogosStorage();
|
|
|
|
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);
|
|
}
|
|
}
|
|
}
|