Getting tests to use dummy client
This commit is contained in:
parent
0383202304
commit
4ae3052684
7
test.go
7
test.go
|
@ -28,13 +28,14 @@ func Test(password, ip, port string, accesstokens []string) {
|
|||
}
|
||||
|
||||
func (t TestSettings) createClient(uname string) *gumble.Client {
|
||||
client := gumble.NewClient(&gumble.Config{
|
||||
config := gumble.Config{
|
||||
Username: uname,
|
||||
Password: t.password,
|
||||
Address: t.ip + ":" + t.port,
|
||||
Tokens: t.accesstokens,
|
||||
})
|
||||
gumbleutil.CertificateLockFile(client, fmt.Sprintf("%s/.mumbledj/cert.lock", dj.homeDir))
|
||||
}
|
||||
config.TLSConfig.InsecureSkipVerify = true
|
||||
client := gumble.NewClient(&config)
|
||||
return client
|
||||
}
|
||||
|
||||
|
|
Reference in a new issue