Skip to content

Commit

Permalink
fix(ci): fix dot unit tests (#2561)
Browse files Browse the repository at this point in the history
* fix dot tests, remove life runtime

* remove life
  • Loading branch information
timwu20 committed Jul 29, 2022
1 parent 042a068 commit bba0e1d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
6 changes: 3 additions & 3 deletions dot/build_spec_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -136,10 +136,10 @@ func TestBuildFromDB(t *testing.T) {
}{
{name: "normal conditions", path: cfg.Global.BasePath,
want: &BuildSpec{genesis: &genesis.Genesis{
Name: "Gossamer",
ID: "gssmr",
Name: "Gossamer Testnet",
ID: "gssmr_test",
Bootnodes: []string{},
ProtocolID: "/gossamer/gssmr/0",
ProtocolID: "gssmr_test",
Genesis: genesis.Fields{
Raw: map[string]map[string]string{},
Runtime: map[string]map[string]interface{}{},
Expand Down
5 changes: 2 additions & 3 deletions dot/utils_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@ import (
func newTestGenesisFile(t *testing.T, cfg *Config) (filename string) {
t.Helper()

fp := utils.GetGssmrGenesisPathTest(t)

fp := utils.GetGssmrGenesisRawPathTest(t)
gssmrGen, err := genesis.NewGenesisFromJSON(fp, 0)
require.NoError(t, err)

Expand Down Expand Up @@ -63,7 +62,7 @@ func TestCreateJSONRawFile(t *testing.T) {
bs: &BuildSpec{genesis: NewTestGenesis(t)},
fp: filepath.Join(t.TempDir(), "/test.json"),
},
expectedHash: "23356cdb5d3537d39b735726707216c9e329c7b8a2c8a41b25da0f5f936b3caa",
expectedHash: "6453fb6118dab594944a7ed68111fdccc3a68253c9d71ac05f27aa2359507c85",
},
}
for _, tt := range tests {
Expand Down

0 comments on commit bba0e1d

Please sign in to comment.