fix: use memmap file system for TestServer_X11 (#18562)

Changes the TestServer_X11 test to use a memmapped file system, so we don't pollute the XAuthority file of the person running the test.
This commit is contained in:
Spike Curtis
2025-06-27 14:24:07 +04:00
committed by GitHub
parent 9e1cf1693b
commit 6bebfd0ec6
+1 -1
View File
@@ -34,7 +34,7 @@ func TestServer_X11(t *testing.T) {
ctx := context.Background()
logger := testutil.Logger(t)
fs := afero.NewOsFs()
fs := afero.NewMemMapFs()
s, err := agentssh.NewServer(ctx, logger, prometheus.NewRegistry(), fs, agentexec.DefaultExecer, &agentssh.Config{})
require.NoError(t, err)
defer s.Close()