Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ShortDevelopment committed Mar 2, 2025
1 parent b8b097f commit 32bee70
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
using ShortDev.Microsoft.ConnectedDevices.NearShare;
using ShortDev.Microsoft.ConnectedDevices.Transports.Bluetooth;
using ShortDev.Microsoft.ConnectedDevices.Transports.Network;
using System.Collections.Frozen;
using System.Net;

namespace ShortDev.Microsoft.ConnectedDevices.Test.E2E;
Expand Down Expand Up @@ -145,7 +146,7 @@ void OnFileTransfer(FileTransferToken token)
Assert.Equal("TestFile", token.Files[0].Name);
Assert.Equal((ulong)buffer.LongLength, token.Files[0].Size);

token.Accept([receivedData]);
token.Accept(new Dictionary<uint, Stream>() { { 0, receivedData } }.ToFrozenDictionary());
token.Finished += receivePromise.SetResult;
}
}
Expand Down

0 comments on commit 32bee70

Please sign in to comment.