plugin/manager_linux_test.go:215:4: shadow: declaration of "root" shadows declaration at line 173 (govet)
root := filepath.Join(root, desc)
^
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
| ... | ... |
@@ -212,8 +212,7 @@ func TestPluginAlreadyRunningOnStartup(t *testing.T) {
|
| 212 | 212 |
t.Fatal(err) |
| 213 | 213 |
} |
| 214 | 214 |
|
| 215 |
- root := filepath.Join(root, desc) |
|
| 216 |
- config.Root = filepath.Join(root, "manager") |
|
| 215 |
+ config.Root = filepath.Join(root, desc, "manager") |
|
| 217 | 216 |
if err := os.MkdirAll(filepath.Join(config.Root, p.GetID()), 0o755); err != nil {
|
| 218 | 217 |
t.Fatal(err) |
| 219 | 218 |
} |