Replace os.setenv to t.setenv

This commit is contained in:
Zoltan Papp
2025-02-28 15:19:36 +01:00
parent b38ddd8479
commit 3ff3bbe782

View File

@@ -332,7 +332,7 @@ func TestEngine_SSH(t *testing.T) {
}
func TestEngine_UpdateNetworkMap(t *testing.T) {
os.Setenv(envDisableLazyConn, "true")
t.Setenv(envDisableLazyConn, "true")
// test setup
key, err := wgtypes.GeneratePrivateKey()
if err != nil {