Skip to content

Commit

Permalink
Moved cmd_test to cmd/
Browse files Browse the repository at this point in the history
  • Loading branch information
kiltsonfire authored and wizeguyy committed Jan 25, 2023
1 parent 091c50d commit 3d7d91e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions cmd/go-quai/run_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ import (
"time"

"github.com/docker/docker/pkg/reexec"
"github.com/dominant-strategies/go-quai/internal/cmdtest"
"github.com/dominant-strategies/go-quai/rpc"
)

Expand All @@ -38,7 +37,7 @@ func tmpdir(t *testing.T) string {
}

type testquai struct {
*cmdtest.TestCmd
*TestCmd

// template variables for expect
Datadir string
Expand Down Expand Up @@ -68,7 +67,7 @@ func TestMain(m *testing.M) {
// child g gets a temporary data directory.
func runQuai(t *testing.T, args ...string) *testquai {
tt := &testquai{}
tt.TestCmd = cmdtest.NewTestCmd(t, tt)
tt.TestCmd = NewTestCmd(t, tt)
for i, arg := range args {
switch arg {
case "--datadir":
Expand Down
2 changes: 1 addition & 1 deletion internal/cmdtest/test_cmd.go → cmd/go-quai/test_cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
// You should have received a copy of the GNU Lesser General Public License
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.

package cmdtest
package main

import (
"bufio"
Expand Down

0 comments on commit 3d7d91e

Please sign in to comment.