test for select docker by index

This commit is contained in:
Lifailon
2025-02-27 12:34:52 +03:00
parent 64133999cd
commit 254c1e8ce1
2 changed files with 8 additions and 6 deletions
+7 -5
View File
@@ -80,15 +80,17 @@ jobs:
(github.event.inputs.testFunctions == 'true' && github.event.inputs.Distro != 'macos-15') ||
(github.event.inputs.testInterface == 'true' && github.event.inputs.Distro != 'macos-15')
}}
run: docker run -d --name pinguem -p 8085:8085 -p 3005:3005 lifailon/pinguem:latest
run: |
docker run -d --name pinguem -p 8085:8085 -p 3005:3005 lifailon/pinguem:latest
docker run -d --name TorAPI -p 8443:8443 lifailon/torapi:latest
- name: Creat test data
- name: Create pcap file
if: ${{ github.event.inputs.testFunctions == 'true' }}
run: |
echo -e "line 1\nline 2" | sudo tee /opt/test.log > /dev/null
sudo ls -lh /opt
sudo tcpdump -i any -c 1 -w test.pcap
gzip -c test.pcap > test.pcap.gz
sudo tcpdump -i any -c 1 -w test.pcapng
gzip -c test.pcapng > test.pcapng.gz
ls -lh
continue-on-error: true
@@ -98,7 +100,7 @@ jobs:
run: sudo go test -v -cover
continue-on-error: true
- name: Creat markdown report
- name: Create markdown report
if: ${{ github.event.inputs.testFunctions == 'true' }}
run: cat test-report.md >> $GITHUB_STEP_SUMMARY
continue-on-error: true
+1 -1
View File
@@ -805,7 +805,7 @@ func TestMockInterface(t *testing.T) {
time.Sleep(1 * time.Second)
app.setCountLogViewUp(g, v)
time.Sleep(1 * time.Second)
app.setCountLogViewDown(g, v)
app.setCountLogViewUp(g, v)
time.Sleep(1 * time.Second)
// UP output
app.scrollUpLogs(1)