Skip to content

Commit 6cbb2c0

Browse files
committed
formatting and error message fixes from copilot
Signed-off-by: Ronald G Minnich <[email protected]>
1 parent 5d80d01 commit 6cbb2c0

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

vm/ip_linux_test.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ func TestIP(t *testing.T) {
124124
// Verify VTI tunnel exists in /proc/net/dev
125125
{cmd: "cat /proc/net/dev", includes: []string{"vti_tunnel"}},
126126

127-
//Verify VTI tunnel parameters
127+
// Verify VTI tunnel parameters
128128
{cmd: "ip tunnel show vti_tunnel", includes: []string{"vti_tunnel:", "remote 192.168.242.3", "local 192.168.241.1", "key 5678"}},
129129
{cmd: "ip link set vti_tunnel up"},
130130
{cmd: "ip addr add 172.16.0.1/30 dev vti_tunnel"},
@@ -139,7 +139,7 @@ func TestIP(t *testing.T) {
139139
// Verify IPIP tunnel exists in /proc/net/dev
140140
{cmd: "cat /proc/net/dev", includes: []string{"ipip_tunnel"}},
141141

142-
//Verify IPIP tunnel parameters
142+
// Verify IPIP tunnel parameters
143143
{cmd: "ip tunnel show ipip_tunnel", includes: []string{"ipip_tunnel:", "remote 192.168.243.1", "local 192.168.241.1", "ttl 64"}},
144144
{cmd: "ip link set ipip_tunnel up"},
145145
{cmd: "ip addr add 172.17.0.1/30 dev ipip_tunnel"},
@@ -155,7 +155,6 @@ func TestIP(t *testing.T) {
155155

156156
// Verify the neighbor entry
157157
{cmd: "ip neigh show dev eth1", includes: []string{"192.168.241.2", "192.168.241.2 dev eth1 lladdr 00:11:22:33:44:55 PERMANENT"}},
158-
//{cmd: "test "$neigh_entry" = "192.168.241.2 dev eth1 lladdr 00:11:22:33:44:55 PERMANENT"", includes: []string{},},
159158

160159
// Replace the entry with another hwaddress, nud state and router flag
161160
{cmd: "ip neigh replace 192.168.241.2 lladdr 11:22:33:44:55:66 dev eth1 nud stale router", includes: []string{}},

vm/vm_linux_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ func TestCPUARM(t *testing.T) {
111111
d := t.TempDir()
112112
i, err := vm.New("linux", "arm")
113113
if !errors.Is(err, nil) {
114-
t.Fatalf("Testing kernel=linux arch=amd64: got %v, want nil", err)
114+
t.Fatalf("Testing kernel=linux arch=arm: got %v, want nil", err)
115115
}
116116

117117
if err := os.WriteFile(filepath.Join(d, "a"), []byte("hi"), 0644); err != nil {

0 commit comments

Comments
 (0)