mirror of
https://github.com/coder/coder.git
synced 2026-09-21 20:51:01 +08:00
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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user