mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-11-25 13:47:19 +00:00
config: fix TestRun_WithNewVMContextAndBreakpoints path for windows
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 <ekt@morphbits.io>
This commit is contained in:
parent
5fe4778b2e
commit
588e911ad6
3 changed files with 3 additions and 14 deletions
|
@ -93,12 +93,11 @@ func newTestVMCLIWithLogoAndCustomConfig(t *testing.T, printLogo bool, cfg *conf
|
||||||
}
|
}
|
||||||
var c config.Config
|
var c config.Config
|
||||||
if cfg == nil {
|
if cfg == nil {
|
||||||
configPath := "../../config/protocol.unit_testnet.single.yml"
|
configPath := filepath.Join("..", "..", "config", "protocol.unit_testnet.single.yml")
|
||||||
var err error
|
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.NoError(t, err, "could not load chain config")
|
||||||
require.Equal(t, "../../testdata/wallet1_solo.json", c.ApplicationConfiguration.Consensus.UnlockWallet.Path)
|
require.Equal(t, filepath.Join("..", "..", "testdata", "wallet1_solo.json"), c.ApplicationConfiguration.Consensus.UnlockWallet.Path)
|
||||||
require.Equal(t, "/notary_wallet.json", c.ApplicationConfiguration.P2PNotary.UnlockWallet.Path)
|
|
||||||
c.ApplicationConfiguration.DBConfiguration.Type = dbconfig.InMemoryDB
|
c.ApplicationConfiguration.DBConfiguration.Type = dbconfig.InMemoryDB
|
||||||
} else {
|
} else {
|
||||||
c = *cfg
|
c = *cfg
|
||||||
|
|
|
@ -38,11 +38,6 @@ ApplicationConfiguration:
|
||||||
UnlockWallet:
|
UnlockWallet:
|
||||||
Path: "../testdata/wallet1_solo.json"
|
Path: "../testdata/wallet1_solo.json"
|
||||||
Password: "one"
|
Password: "one"
|
||||||
P2PNotary:
|
|
||||||
Enabled: false
|
|
||||||
UnlockWallet:
|
|
||||||
Path: "/notary_wallet.json"
|
|
||||||
Password: "pass"
|
|
||||||
RPC:
|
RPC:
|
||||||
MaxGasInvoke: 15
|
MaxGasInvoke: 15
|
||||||
Enabled: true
|
Enabled: true
|
||||||
|
|
|
@ -42,11 +42,6 @@ ApplicationConfiguration:
|
||||||
AttemptConnPeers: 5
|
AttemptConnPeers: 5
|
||||||
MinPeers: 0
|
MinPeers: 0
|
||||||
Relay: true
|
Relay: true
|
||||||
P2PNotary:
|
|
||||||
Enabled: false
|
|
||||||
UnlockWallet:
|
|
||||||
Path: "/notary_wallet.json"
|
|
||||||
Password: "pass"
|
|
||||||
RPC:
|
RPC:
|
||||||
MaxGasInvoke: 15
|
MaxGasInvoke: 15
|
||||||
Enabled: true
|
Enabled: true
|
||||||
|
|
Loading…
Reference in a new issue