Rename issue 35 testing config function to avoid confusion
This commit is contained in:
parent
0f9f7ba01b
commit
90718d086c
@ -30,7 +30,7 @@ func addirs(cf *Config) *Config {
|
|||||||
return cf
|
return cf
|
||||||
}
|
}
|
||||||
|
|
||||||
func testingConfig() *Config {
|
func issue35TestingConfig() *Config {
|
||||||
return &Config{
|
return &Config{
|
||||||
ListenAddr: "localhost:0",
|
ListenAddr: "localhost:0",
|
||||||
NoDHT: false,
|
NoDHT: false,
|
||||||
@ -85,7 +85,7 @@ func TestInfohash(t *testing.T) {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatal(err)
|
t.Fatal(err)
|
||||||
}
|
}
|
||||||
cf_one = testingConfig()
|
cf_one = issue35TestingConfig()
|
||||||
cf_one.ListenAddr = "localhost:43433"
|
cf_one.ListenAddr = "localhost:43433"
|
||||||
cf_one = addirs(cf_one)
|
cf_one = addirs(cf_one)
|
||||||
cl_one, err = NewClient(cf_one)
|
cl_one, err = NewClient(cf_one)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user