--- a/docker-compose-tests.yml +++ b/docker-compose-tests.yml @@ -21,6 +21,8 @@ build: context: ./ dockerfile: Dockerfile-tests + volumes: + - ./tests/src/config_docker.ts:/nft_parachain/tests/src/config.ts networks: - node_test_network depends_on: --- a/tests/src/config.ts +++ b/tests/src/config.ts @@ -6,7 +6,7 @@ import process from 'process'; const config = { - substrateUrl: process.env.substrateUrl || 'ws://172.17.0.1:9944' + substrateUrl: process.env.substrateUrl || 'ws://127.0.0.1:9944' } export default config; \ No newline at end of file --- /dev/null +++ b/tests/src/config_docker.ts @@ -0,0 +1,12 @@ +// +// This file is subject to the terms and conditions defined in +// file 'LICENSE', which is part of this source code package. +// + +import process from 'process'; + +const config = { + substrateUrl: process.env.substrateUrl || 'ws://172.17.0.1:9944' +} + +export default config; \ No newline at end of file