Skip to content

Commit

Permalink
use raw methods for build spec command
Browse files Browse the repository at this point in the history
  • Loading branch information
timwu20 committed Aug 9, 2022
1 parent bdcb9de commit 09bb6de
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 1 addition & 4 deletions cmd/gossamer/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import (
"os"
"os/exec"
"path/filepath"
"strings"
"sync"
"syscall"
"testing"
Expand Down Expand Up @@ -266,12 +265,10 @@ func TestInitCommand_RenameNodeWhenCalled(t *testing.T) {
func TestBuildSpecCommandWithOutput(t *testing.T) {
const tmpOutputfile = "/tmp/raw-genesis-spec-output.json"

genesisPath := strings.Replace(utils.GetGssmrGenesisPathTest(t), "-spec.json", ".json", -1)

buildSpecCommand := runTestGossamer(t,
"build-spec",
"--raw",
"--genesis-spec", genesisPath,
"--genesis-spec", utils.GetGssmrGenesisRawPathTest(t),
"--output", tmpOutputfile)

time.Sleep(5 * time.Second)
Expand Down
2 changes: 1 addition & 1 deletion cmd/gossamer/toml_config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ func TestLoadConfigGssmr(t *testing.T) {
require.NotNil(t, cfg)

cfg.Global.BasePath = t.TempDir()
cfg.Init.Genesis = utils.GetGssmrGenesisPathTest(t)
cfg.Init.Genesis = utils.GetGssmrGenesisRawPathTest(t)

err := dot.InitNode(cfg)
require.NoError(t, err)
Expand Down

0 comments on commit 09bb6de

Please sign in to comment.