mirror of
https://github.com/gtsteffaniak/filebrowser.git
synced 2026-11-27 00:49:41 -05:00
Co-authored-by: Cursor Agent <cursoragent@cursor.com> Co-authored-by: Graham Steffaniak <gtsteffaniak@users.noreply.github.com>
16 lines
272 B
Go
16 lines
272 B
Go
package web
|
|
|
|
import (
|
|
"sync"
|
|
"testing"
|
|
)
|
|
|
|
// webGlobalTestMu serializes tests that mutate process-wide settings.Config or state.
|
|
var webGlobalTestMu sync.Mutex
|
|
|
|
func lockWebGlobals(t testing.TB) {
|
|
t.Helper()
|
|
webGlobalTestMu.Lock()
|
|
t.Cleanup(webGlobalTestMu.Unlock)
|
|
}
|