Skip to content

Commit 54a2142

Browse files
committed
test fix
1 parent 7154c13 commit 54a2142

File tree

1 file changed

+26
-24
lines changed

1 file changed

+26
-24
lines changed

pkg/plugin/settings_test.go

Lines changed: 26 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -33,16 +33,17 @@ func TestLoadSettings(t *testing.T) {
3333
},
3434
},
3535
expectedSettings: Settings{
36-
Server: "test",
37-
Port: 8812,
38-
Username: "john",
39-
Password: "doe",
40-
Timeout: 10,
41-
QueryTimeout: 50,
42-
MaxOpenConnections: 100,
43-
MaxIdleConnections: 100,
44-
MaxConnectionLifetime: 14400,
45-
TlsMode: "disable",
36+
Server: "test",
37+
Port: 8812,
38+
Username: "john",
39+
Password: "doe",
40+
Timeout: 10,
41+
QueryTimeout: 50,
42+
MaxOpenConnections: 100,
43+
MaxIdleConnections: 100,
44+
MaxConnectionLifetime: 14400,
45+
TlsMode: "disable",
46+
EnableSecureSocksProxy: false,
4647
},
4748
expectedErr: nil,
4849
},
@@ -58,20 +59,21 @@ func TestLoadSettings(t *testing.T) {
5859
},
5960
},
6061
expectedSettings: Settings{
61-
Server: "test",
62-
Port: 1000,
63-
Username: "john",
64-
Password: "doe",
65-
TlsCACert: "caCert",
66-
TlsClientCert: "clientCert",
67-
TlsClientKey: "clientKey",
68-
Timeout: 10,
69-
QueryTimeout: 50,
70-
MaxOpenConnections: 100,
71-
MaxIdleConnections: 100,
72-
MaxConnectionLifetime: 14400,
73-
TlsMode: "verify-full",
74-
ConfigurationMethod: "file-content",
62+
Server: "test",
63+
Port: 1000,
64+
Username: "john",
65+
Password: "doe",
66+
TlsCACert: "caCert",
67+
TlsClientCert: "clientCert",
68+
TlsClientKey: "clientKey",
69+
Timeout: 10,
70+
QueryTimeout: 50,
71+
MaxOpenConnections: 100,
72+
MaxIdleConnections: 100,
73+
MaxConnectionLifetime: 14400,
74+
TlsMode: "verify-full",
75+
ConfigurationMethod: "file-content",
76+
EnableSecureSocksProxy: true,
7577
},
7678
expectedErr: nil,
7779
},

0 commit comments

Comments
 (0)