mirror of
https://github.com/strukturag/nextcloud-spreed-signaling
synced 2026-03-14 14:35:44 +01:00
Use "t.Chdir" to directory is restored after test.
This commit is contained in:
parent
f7b9224bda
commit
6f35e021f9
1 changed files with 1 additions and 1 deletions
|
|
@ -94,7 +94,7 @@ func TestFileWatcher_CurrentDir(t *testing.T) { // nolint:paralleltest
|
|||
require := require.New(t)
|
||||
assert := assert.New(t)
|
||||
tmpdir := t.TempDir()
|
||||
require.NoError(os.Chdir(tmpdir))
|
||||
t.Chdir(tmpdir)
|
||||
filename := path.Join(tmpdir, "test.txt")
|
||||
require.NoError(os.WriteFile(filename, []byte("Hello world!"), 0644))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue