mirror of
https://github.com/henrygd/beszel.git
synced 2026-03-24 06:26:17 +01:00
test: update tests that use os.Setenv to t.Setenv
This commit is contained in:
@@ -1035,7 +1035,7 @@ func TestRefreshExcludedDevices(t *testing.T) {
|
||||
t.Setenv("EXCLUDE_SMART", tt.envValue)
|
||||
} else {
|
||||
// Ensure env var is not set for empty test
|
||||
os.Unsetenv("EXCLUDE_SMART")
|
||||
t.Setenv("EXCLUDE_SMART", "")
|
||||
}
|
||||
|
||||
sm := &SmartManager{}
|
||||
|
||||
Reference in New Issue
Block a user