Skip to content

Commit 6bebfd0

Browse files
authored
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.
1 parent 9e1cf16 commit 6bebfd0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

agent/agentssh/x11_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ func TestServer_X11(t *testing.T) {
3434

3535
ctx := context.Background()
3636
logger := testutil.Logger(t)
37-
fs := afero.NewOsFs()
37+
fs := afero.NewMemMapFs()
3838
s, err := agentssh.NewServer(ctx, logger, prometheus.NewRegistry(), fs, agentexec.DefaultExecer, &agentssh.Config{})
3939
require.NoError(t, err)
4040
defer s.Close()

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy