From 7f8df740709bce8fab9cb801a06461b4a632b8df Mon Sep 17 00:00:00 2001 From: Ivan Fraixedes Date: Wed, 19 Aug 2020 13:12:10 +0200 Subject: [PATCH] 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 --- private/testplanet/run.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/private/testplanet/run.go b/private/testplanet/run.go index 3b6e0534f..43ec89b81 100644 --- a/private/testplanet/run.go +++ b/private/testplanet/run.go @@ -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) }