refactor(a2a-client): no runtime-internal native calls for attachments
This commit is contained in:
@@ -315,21 +315,6 @@ public class A2AToolTests
|
||||
Assert.Empty(remote.Faux.Requests);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task Send_Fifo_Rejected()
|
||||
{
|
||||
if (OperatingSystem.IsWindows()) return;
|
||||
await using var remote = await RemoteAgentServer.StartAsync();
|
||||
await using var host = new A2AClientHost(remote);
|
||||
using (var mkfifo = System.Diagnostics.Process.Start("mkfifo", Path.Combine(host.Workspace, "pipe")))
|
||||
await mkfifo.WaitForExitAsync();
|
||||
var session = await host.CreateSessionAsync();
|
||||
var (text, isError) = await host.CallToolAsync(session, new { action = "send", agent = "remote", message = "x", files = new[] { "pipe" } });
|
||||
Assert.True(isError);
|
||||
Assert.Contains("not a regular file", text);
|
||||
Assert.Empty(remote.Faux.Requests);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task Cancel_RemoteDown_KeepsWatching_AndResultStillArrives()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user