private/testplanet: Use config with name set when empty

In testplanet Run function we create a new configuration variable on
each t.Run for setting the value to the config name field when it's
empty, however the new copy of the configuration was not used.

Change-Id: I9da34e743f9648850c96556eab0349e742db3aac
This commit is contained in:
Ivan Fraixedes 2020-08-19 13:12:10 +02:00
parent be3fd0147e
commit 7f8df74070
No known key found for this signature in database
GPG Key ID: 042B474597F96DB7

View File

@ -52,7 +52,7 @@ func Run(t *testing.T, config Config, test func(t *testing.T, ctx *testcontext.C
planetConfig.Name = t.Name()
}
planet, err := NewCustom(zaptest.NewLogger(t), config, satelliteDB)
planet, err := NewCustom(zaptest.NewLogger(t), planetConfig, satelliteDB)
if err != nil {
t.Fatalf("%+v", err)
}