# tests: name temp dirs with unique ids, not the clock · lucenx/signaltty

[View on GitCafe](https://git.cafe/lucenx/signaltty/commit/ed09ea8661962646c6c6ec6d2fbace6bc44c816b)

Repository: [lucenx/signaltty](https://git.cafe/lucenx/signaltty)

Visibility: public

Requested revision: ed09ea8661962646c6c6ec6d2fbace6bc44c816b

Requested commit: ed09ea8661962646c6c6ec6d2fbace6bc44c816b

Commit: ed09ea8661962646c6c6ec6d2fbace6bc44c816b

Tree: ff00db4a28bdbc2d5c8412fe82c816db20288302

Author: Lucenx9

Committer: Simone

## Message

```
tests: name temp dirs with unique ids, not the clock

Seventeen test fixtures built temp paths from pid + nanoseconds; tests in
one process running in parallel could read the same clock value and share
a directory (seen in tests/worktrees.rs: 'could not lock config file',
then the other test's Drop deleted it). Use new_pane_id() instead.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

```

## Parents

- [519e236f35f8d1ab914bd2a4043c910ac5e6b473](https://git.cafe/lucenx/signaltty/commit/519e236f35f8d1ab914bd2a4043c910ac5e6b473?format=markdown)

[Source at this commit](https://git.cafe/lucenx/signaltty/tree/ed09ea8661962646c6c6ec6d2fbace6bc44c816b?format=markdown)
