@@ -44,22 +44,14 @@ diff --git a/test/docker-compose.yaml b/test/docker-compose.yaml
4444index 65ae927..0621932 100644
4545--- a/test/docker-compose.yaml
4646+++ b/test/docker-compose.yaml
47- @@ -5,14 +5,14 @@ services:
48- container_name: tester
49- hostname: tester
50- build: centos-image
51- - user: centos
52- - working_dir: /home/centos
53- + volumes:
54- + - ../test:/sshproxy-test
55- depends_on:
56- - gateway1
57- - gateway2
47+ @@ -13,8 +13,8 @@ services:
5848 - server1
5949 - server2
6050 - server3
51+ - #command: ["/usr/bin/sleep", "1000"]
6152- command: ["/usr/bin/go", "test", "-v", "-failfast", "-tags", "docker", "./sshproxy_test.go"]
62- + command: ["/usr/sbin/sshd", "-De"]
53+ + command: ["/usr/bin/sleep", "1000"]
54+ + #command: ["/usr/bin/go", "test", "-v", "-failfast", "-tags", "docker", "./sshproxy_test.go"]
6355
6456 gateway1:
6557 container_name: gateway1
@@ -72,13 +64,7 @@ Then we start (and build if necessary) all containers:
7264Once every container is started, we can connect to the tester container:
7365
7466 $ docker-compose exec tester /bin/bash
75- [root@tester /]#
76-
77- It is then recommended to change the test file by a link to the one found in
78- the repository (thanks to the volume mounted in the container):
79-
80- [root@tester /]# su - centos
81- [centos@tester ~]$ ln -s -f /sshproxy-test/centos-image/sshproxy_test.go
67+ [centos@tester ~]$
8268
8369We then use the +go test+ command to run the tests:
8470
0 commit comments