1
0
mirror of https://github.com/rancher/os.git synced 2025-09-12 13:17:17 +00:00

Upgrade golang compiler to latest; go fmt files.

This commit is contained in:
Lonnie Liu
2021-02-15 14:23:01 -08:00
committed by Olli Janatuinen
parent 6cde287f87
commit af08844a9a
4 changed files with 24 additions and 23 deletions

View File

@@ -70,13 +70,13 @@ func TestFetchMetadata(t *testing.T) {
RootDisk: "/dev/xvda",
NetworkConfig: netconf.NetworkConfig{
Interfaces: map[string]netconf.InterfaceConfig{
/* "eth0": netconf.InterfaceConfig{
Addresses: []string{
"1.2.3.4",
"5.6.7.8",
/* "eth0": netconf.InterfaceConfig{
Addresses: []string{
"1.2.3.4",
"5.6.7.8",
},
},
},
*/},
*/},
},
},
},
@@ -100,13 +100,13 @@ func TestFetchMetadata(t *testing.T) {
RootDisk: "/dev/nvme0n1",
NetworkConfig: netconf.NetworkConfig{
Interfaces: map[string]netconf.InterfaceConfig{
/* "eth0": netconf.InterfaceConfig{
Addresses: []string{
"1.2.3.4",
"5.6.7.8",
/* "eth0": netconf.InterfaceConfig{
Addresses: []string{
"1.2.3.4",
"5.6.7.8",
},
},
},
*/},
*/},
},
},
},

View File

@@ -20,10 +20,10 @@ import (
func TestFormatConfigs(t *testing.T) {
for in, n := range map[string]int{
"": 0,
"line1\\\nis long": 1,
"#comment": 0,
"#comment\\\ncomment": 0,
"": 0,
"line1\\\nis long": 1,
"#comment": 0,
"#comment\\\ncomment": 0,
" #comment \\\n comment\nline 1\nline 2\\\n is long": 2,
} {
lines := formatConfig(in)