Skip to content

Commit

Permalink
config: fix TestRun_WithNewVMContextAndBreakpoints path for windows
Browse files Browse the repository at this point in the history
Fix VM test for windows. We don't have notary enabled in unit testchains
 so it was removed.

Close #3309

Signed-off-by: Ekaterina Pavlova <[email protected]>
  • Loading branch information
AliceInHunterland committed Feb 13, 2024
1 parent 939631c commit e8b8c6c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
7 changes: 3 additions & 4 deletions cli/vm/cli_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,12 +93,11 @@ func newTestVMCLIWithLogoAndCustomConfig(t *testing.T, printLogo bool, cfg *conf
}
var c config.Config
if cfg == nil {
configPath := "../../config/protocol.unit_testnet.single.yml"
configPath := filepath.Join("..", "..", "config", "protocol.unit_testnet.single.yml")
var err error
c, err = config.LoadFile(configPath, "../../config")
c, err = config.LoadFile(configPath, filepath.Join("..", "..", "config"))
require.NoError(t, err, "could not load chain config")
require.Equal(t, "../../testdata/wallet1_solo.json", c.ApplicationConfiguration.Consensus.UnlockWallet.Path)
require.Equal(t, "/notary_wallet.json", c.ApplicationConfiguration.P2PNotary.UnlockWallet.Path)
require.Equal(t, filepath.Join("..", "..", "testdata", "wallet1_solo.json"), c.ApplicationConfiguration.Consensus.UnlockWallet.Path)
c.ApplicationConfiguration.DBConfiguration.Type = dbconfig.InMemoryDB
} else {
c = *cfg
Expand Down
5 changes: 0 additions & 5 deletions config/protocol.unit_testnet.single.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,6 @@ ApplicationConfiguration:
UnlockWallet:
Path: "../testdata/wallet1_solo.json"
Password: "one"
P2PNotary:
Enabled: false
UnlockWallet:
Path: "/notary_wallet.json"
Password: "pass"
RPC:
MaxGasInvoke: 15
Enabled: true
Expand Down

0 comments on commit e8b8c6c

Please sign in to comment.