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:
committed by
Olli Janatuinen
parent
6cde287f87
commit
af08844a9a
@@ -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",
|
||||
},
|
||||
},
|
||||
},
|
||||
*/},
|
||||
*/},
|
||||
},
|
||||
},
|
||||
},
|
||||
|
@@ -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)
|
||||
|
Reference in New Issue
Block a user