As we reevaluate how to best support and maintain Staging Ref in the future, we encourage development teams using this environment to highlight their use cases in the following issue: https://gitlab.com/gitlab-com/gl-infra/software-delivery/framework/software-delivery-framework-issue-tracker/-/issues/36.

Skip to content
Snippets Groups Projects
Unverified Commit 71927c6e authored by Ash McKenzie's avatar Ash McKenzie
Browse files

TempDir() cleanup happens internally automatically

parent fba6b115
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -263,7 +263,6 @@ func configureSSHD(t *testing.T, apiServer string) (string, ed25519.PublicKey) {
t.Helper()
tempDir := t.TempDir()
t.Cleanup(func() { require.NoError(t, os.RemoveAll(tempDir)) })
configFile := filepath.Join(tempDir, "config.yml")
hostKeyFile := filepath.Join(tempDir, "hostkey")
Loading
Loading
Loading
Loading
@@ -62,7 +62,6 @@ func TestConfigureWithDebugLogLevel(t *testing.T) {
func TestConfigureWithPermissionError(t *testing.T) {
tempDir := t.TempDir()
t.Cleanup(func() { require.NoError(t, os.RemoveAll(tempDir)) })
config := config.Config{
LogFile: tempDir,
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment