Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

oasis-net-runner: Fix runtime configuration in default fixture #3806

Merged
merged 1 commit into from
Mar 22, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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