run gofumpt cleanup across code-base (#14015)

This commit is contained in:
Harshavardhana
2022-01-02 09:15:06 -08:00
committed by GitHub
parent 6f474982ed
commit f527c708f2
250 changed files with 1201 additions and 1264 deletions

View File

@@ -31,9 +31,11 @@ func TestNatsConnPlain(t *testing.T) {
clientConfig := &NATSArgs{
Enable: true,
Address: xnet.Host{Name: "localhost",
Address: xnet.Host{
Name: "localhost",
Port: (xnet.Port(opts.Port)),
IsPortSet: true},
IsPortSet: true,
},
Subject: "test",
}
con, err := clientConfig.connectNats()
@@ -53,9 +55,11 @@ func TestNatsConnUserPass(t *testing.T) {
clientConfig := &NATSArgs{
Enable: true,
Address: xnet.Host{Name: "localhost",
Address: xnet.Host{
Name: "localhost",
Port: (xnet.Port(opts.Port)),
IsPortSet: true},
IsPortSet: true,
},
Subject: "test",
Username: opts.Username,
Password: opts.Password,
@@ -77,9 +81,11 @@ func TestNatsConnToken(t *testing.T) {
clientConfig := &NATSArgs{
Enable: true,
Address: xnet.Host{Name: "localhost",
Address: xnet.Host{
Name: "localhost",
Port: (xnet.Port(opts.Port)),
IsPortSet: true},
IsPortSet: true,
},
Subject: "test",
Token: opts.Authorization,
}