Skip to content
Snippets Groups Projects
Commit d3f1e395 authored by Luca Moser's avatar Luca Moser
Browse files

pray to the CI gods for the test to pass

parent cfba2ca1
No related branches found
No related tags found
No related merge requests found
...@@ -4,75 +4,6 @@ on: pull_request ...@@ -4,75 +4,6 @@ on: pull_request
jobs: jobs:
autopeering:
name: autopeering
env:
TEST_NAME: autopeering
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v2
- name: Build GoShimmer image
run: docker build -t iotaledger/goshimmer .
- name: Pull additional Docker images
run: |
docker pull angelocapossele/drand:latest
docker pull gaiaadm/pumba:0.7.2
docker pull gaiadocker/iproute2:latest
- name: Run integration tests
run: docker-compose -f tools/integration-tests/tester/docker-compose.yml up --abort-on-container-exit --exit-code-from tester --build
- name: Create logs from tester
if: always()
run: |
docker logs tester &> tools/integration-tests/logs/tester.log
- name: Save logs as artifacts
if: always()
uses: actions/upload-artifact@v1
with:
name: ${{ env.TEST_NAME }}
path: tools/integration-tests/logs
common:
name: common
env:
TEST_NAME: common
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v2
- name: Build GoShimmer image
run: docker build -t iotaledger/goshimmer .
- name: Pull additional Docker images
run: |
docker pull angelocapossele/drand:latest
docker pull gaiaadm/pumba:0.7.2
docker pull gaiadocker/iproute2:latest
- name: Run integration tests
run: docker-compose -f tools/integration-tests/tester/docker-compose.yml up --abort-on-container-exit --exit-code-from tester --build
- name: Create logs from tester
if: always()
run: |
docker logs tester &> tools/integration-tests/logs/tester.log
- name: Save logs as artifacts
if: always()
uses: actions/upload-artifact@v1
with:
name: ${{ env.TEST_NAME }}
path: tools/integration-tests/logs
consensus: consensus:
name: consensus name: consensus
env: env:
...@@ -105,110 +36,4 @@ jobs: ...@@ -105,110 +36,4 @@ jobs:
uses: actions/upload-artifact@v1 uses: actions/upload-artifact@v1
with: with:
name: ${{ env.TEST_NAME }} name: ${{ env.TEST_NAME }}
path: tools/integration-tests/logs path: tools/integration-tests/logs
\ No newline at end of file
drng:
name: drng
env:
TEST_NAME: drng
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v2
- name: Build GoShimmer image
run: docker build -t iotaledger/goshimmer .
- name: Pull additional Docker images
run: |
docker pull angelocapossele/drand:latest
docker pull gaiaadm/pumba:0.7.2
docker pull gaiadocker/iproute2:latest
- name: Run integration tests
run: docker-compose -f tools/integration-tests/tester/docker-compose.yml up --abort-on-container-exit --exit-code-from tester --build
- name: Create logs from tester
if: always()
run: |
docker logs tester &> tools/integration-tests/logs/tester.log
- name: Save logs as artifacts
if: always()
uses: actions/upload-artifact@v1
with:
name: ${{ env.TEST_NAME }}
path: tools/integration-tests/logs
message:
name: message
env:
TEST_NAME: message
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v2
- name: Build GoShimmer image
run: docker build -t iotaledger/goshimmer .
- name: Pull additional Docker images
run: |
docker pull angelocapossele/drand:latest
docker pull gaiaadm/pumba:0.7.2
docker pull gaiadocker/iproute2:latest
- name: Run integration tests
run: docker-compose -f tools/integration-tests/tester/docker-compose.yml up --abort-on-container-exit --exit-code-from tester --build
- name: Create logs from tester
if: always()
run: |
docker logs tester &> tools/integration-tests/logs/tester.log
- name: Save logs as artifacts
if: always()
uses: actions/upload-artifact@v1
with:
name: ${{ env.TEST_NAME }}
path: tools/integration-tests/logs
value:
name: value
env:
TEST_NAME: value
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v2
- name: Build GoShimmer image
run: docker build -t iotaledger/goshimmer .
- name: Pull additional Docker images
run: |
docker pull angelocapossele/drand:latest
docker pull gaiaadm/pumba:0.7.2
docker pull gaiadocker/iproute2:latest
- name: Run integration tests
run: docker-compose -f tools/integration-tests/tester/docker-compose.yml up --abort-on-container-exit --exit-code-from tester --build
- name: Create logs from tester
if: always()
run: |
docker logs tester &> tools/integration-tests/logs/tester.log
- name: Save logs as artifacts
if: always()
uses: actions/upload-artifact@v1
with:
name: ${{ env.TEST_NAME }}
path: tools/integration-tests/logs
...@@ -6,4 +6,4 @@ chmod 777 /assets/* ...@@ -6,4 +6,4 @@ chmod 777 /assets/*
echo "assets:" echo "assets:"
ls /assets ls /assets
echo "running tests..." echo "running tests..."
go test ./tests/"${TEST_NAME}" -v -timeout 30m go test ./tests/"${TEST_NAME}" -run TestConsensusFiftyFiftyOpinionSplit -v -timeout 30m
package consensus package consensus
import ( import (
"github.com/iotaledger/goshimmer/tools/integration-tests/tester/framework"
"log" "log"
"testing" "testing"
"time" "time"
"github.com/iotaledger/goshimmer/tools/integration-tests/tester/framework"
"github.com/iotaledger/goshimmer/dapps/valuetransfers/packages/address" "github.com/iotaledger/goshimmer/dapps/valuetransfers/packages/address"
"github.com/iotaledger/goshimmer/dapps/valuetransfers/packages/address/signaturescheme" "github.com/iotaledger/goshimmer/dapps/valuetransfers/packages/address/signaturescheme"
"github.com/iotaledger/goshimmer/dapps/valuetransfers/packages/balance" "github.com/iotaledger/goshimmer/dapps/valuetransfers/packages/balance"
...@@ -156,13 +157,14 @@ func TestConsensusFiftyFiftyOpinionSplit(t *testing.T) { ...@@ -156,13 +157,14 @@ func TestConsensusFiftyFiftyOpinionSplit(t *testing.T) {
}) })
// wait until the voting has finalized // wait until the voting has finalized
log.Println("waiting for voting/transaction finalization to be done on all peers...")
awaitFinalization := map[string]tests.ExpectedInclusionState{} awaitFinalization := map[string]tests.ExpectedInclusionState{}
for _, conflictingTx := range conflictingTxs { for _, conflictingTx := range conflictingTxs {
awaitFinalization[conflictingTx.ID().String()] = tests.ExpectedInclusionState{ awaitFinalization[conflictingTx.ID().String()] = tests.ExpectedInclusionState{
Finalized: tests.True(), Finalized: tests.True(),
} }
} }
err = tests.AwaitTransactionInclusionState(n.Peers(), awaitFinalization, 2*time.Minute) err = tests.AwaitTransactionInclusionState(n.Peers(), awaitFinalization, 4*time.Minute)
assert.NoError(t, err) assert.NoError(t, err)
// now all transactions must be finalized and at most one must be confirmed // now all transactions must be finalized and at most one must be confirmed
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment