Skip to content

Commit

Permalink
cleanup before and after test
Browse files Browse the repository at this point in the history
  • Loading branch information
0pcom committed Jun 8, 2023
1 parent 6ee28bd commit fbac7b7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 93 deletions.
4 changes: 3 additions & 1 deletion cmd/skywire-cli/commands/config/gen_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package cliconfig

import (
"os"
"os/exec"
"runtime"
"testing"
Expand Down Expand Up @@ -56,7 +57,7 @@ func TestConfigGenCmdFunc(t *testing.T) {
expectedErr: true,
},
}

_ = os.Remove("test-config.json") //nolint
for _, test := range tests {
t.Run(test.name, func(t *testing.T) {
_, err := script.Exec(shell + ` -c "go run ../../skywire-cli.go ` + test.command + `"`).Stdout()
Expand All @@ -72,4 +73,5 @@ func TestConfigGenCmdFunc(t *testing.T) {
}
})
}
_ = os.Remove("test-config.json") //nolint
}
92 changes: 0 additions & 92 deletions cmd/skywire-cli/commands/config/test-config.json

This file was deleted.

0 comments on commit fbac7b7

Please sign in to comment.