summaryrefslogtreecommitdiff
path: root/internal/flags/flags_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/flags/flags_test.go')
-rw-r--r--internal/flags/flags_test.go4
1 files changed, 0 insertions, 4 deletions
diff --git a/internal/flags/flags_test.go b/internal/flags/flags_test.go
index 81d01ad..54c65b8 100644
--- a/internal/flags/flags_test.go
+++ b/internal/flags/flags_test.go
@@ -5,7 +5,6 @@ import (
"io"
"os"
"strings"
- "sync"
"testing"
"time"
)
@@ -16,7 +15,6 @@ func parseForTest(t *testing.T, args ...string) (Flags, error) {
oldCommandLine := flag.CommandLine
oldArgs := os.Args
oldSingleton := singleton
- oldOnce := once
oldParseErr := parseErr
oldPID := pidFilter.Load()
oldTID := tidFilter.Load()
@@ -28,7 +26,6 @@ func parseForTest(t *testing.T, args ...string) (Flags, error) {
os.Args = append([]string{"ior"}, args...)
singleton = Flags{TUIExportEnable: true}
- once = sync.Once{}
parseErr = nil
pidFilter.Store(-1)
tidFilter.Store(-1)
@@ -41,7 +38,6 @@ func parseForTest(t *testing.T, args ...string) (Flags, error) {
flag.CommandLine = oldCommandLine
os.Args = oldArgs
singleton = oldSingleton
- once = oldOnce
parseErr = oldParseErr
pidFilter.Store(oldPID)
tidFilter.Store(oldTID)