Files
miasma-installer/examples/danklinux/internal/server/network/wired_test.go
tumillanino 33dd952ad4
Some checks failed
Build / build (push) Failing after 5m23s
updated the installer so that it should actually work
2025-11-11 18:57:02 +11:00

24 lines
399 B
Go

package network
import (
"testing"
"github.com/stretchr/testify/assert"
)
func TestManager_GetWiredConfigs(t *testing.T) {
manager := &Manager{
state: &NetworkState{
EthernetConnected: true,
WiredConnections: []WiredConnection{
{ID: "Test", IsActive: true},
},
},
}
configs := manager.GetWiredConfigs()
assert.Len(t, configs, 1)
assert.Equal(t, "Test", configs[0].ID)
}