Skip to content

Commit

Permalink
Merge pull request #3808 from oasisprotocol/kostko/stable/21.0.x/back…
Browse files Browse the repository at this point in the history
…port-3806

[BACKPORT/21.0.x] oasis-net-runner: Fix runtime configuration in default fixture
  • Loading branch information
kostko authored Mar 22, 2021
2 parents ef09680 + fd80e99 commit 9f4745f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions .changelog/3794.feature.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
oasis-net-runner: Configure a client node even without runtimes
1 change: 1 addition & 0 deletions .changelog/3805.bugfix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
oasis-net-runner: Configure a runtime in default fixture
5 changes: 4 additions & 1 deletion go/oasis-net-runner/fixtures/default.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,9 @@ func newDefaultFixture() (*oasis.NetworkFixture, error) {
fixture.Entities = append(fixture.Entities, oasis.EntityCfg{})
}

// Always run a client node.
fixture.Clients = []oasis.ClientFixture{{}}

if viper.GetBool(cfgSetupRuntimes) {
fixture.Runtimes = []oasis.RuntimeFixture{
// Key manager runtime.
Expand Down Expand Up @@ -156,7 +159,7 @@ func newDefaultFixture() (*oasis.NetworkFixture, error) {
{Entity: 1, Runtimes: []int{1}},
{Entity: 1, Runtimes: []int{1}},
}
fixture.Clients = []oasis.ClientFixture{{}}
fixture.Clients[0].Runtimes = []int{1}
}

return fixture, nil
Expand Down

0 comments on commit 9f4745f

Please sign in to comment.