git.delta.rocks / unique-network / refs/commits / 22b9858f6202

difftreelog

updating docker-compose

akaryaginUSETECH2021-03-14parent: #67e03be.patch.diff
in: master

3 files changed

modifieddocker-compose-tests.ymldiffbeforeafterboth
before · docker-compose-tests.yml
1version: "3.5"23services:4  node_validator1:5    image: nft_node_test6    container_name: validator1_test7    ports:8      - 9944:99449    build:10      context: ./11      dockerfile: Dockerfile12#    volumes:13#      - ./chain-data:/chain-data14    networks:15      - node_test_network16    command: bash -c "/usr/local/bin/nft --dev --tmp --ws-external --rpc-external"1718  integration_tests:19    container_name: integration_test20    image: int_test21    build:22      context: ./23      dockerfile: Dockerfile-tests24    networks:25      - node_test_network26    depends_on:27      - node_validator12829   unit_tests:30    container_name: unit_test31    image: nft_unit_test32    build:33      context: ./34      dockerfile: Dockerfile-unit35    container_name: unit_test36    networks:37      - node_test_network38   # command: bash -c 'while true; do sleep 20; df -h; done'39    command: bash -c 'cargo test'4041networks:42  node_test_network:43    name: node_test_network44    driver: bridge
modifiedtests/src/config.tsdiffbeforeafterboth
--- 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
addedtests/src/config_docker.tsdiffbeforeafterboth
--- /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