Merge pull request #3313 from nspcc-dev/TestRun_WithNewVMContextAndBreakpoints

config: fix windows paths in VM tests
This commit is contained in:
Anna Shaleva 2024-02-15 11:07:04 +03:00 committed by GitHub
commit 71fb759c0d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 3 additions and 14 deletions

View file

@ -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

View file

@ -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

View file

@ -42,11 +42,6 @@ ApplicationConfiguration:
AttemptConnPeers: 5
MinPeers: 0
Relay: true
P2PNotary:
Enabled: false
UnlockWallet:
Path: "/notary_wallet.json"
Password: "pass"
RPC:
MaxGasInvoke: 15
Enabled: true