Skip to content

Commit 181a376

Browse files
committed
wip: deflake ut
1 parent 17af3bb commit 181a376

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/linux.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,4 @@ jobs:
3434
set -eoux pipefail
3535
export GOPATH=$GITHUB_WORKSPACE
3636
cd $GITHUB_WORKSPACE/src/github.com/aws/amazon-ecs-agent
37-
make test-silent
38-
make analyze-cover-profile
39-
make test-init
40-
make analyze-cover-profile-init
37+
make test-flaky-session

Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,9 @@ test-silent: test-ebs-csi
178178
cd ecs-agent && GO111MODULE=on GOEXPERIMENT=nocoverageredesign ${GOTEST} -tags unit -mod vendor -coverprofile ../cover.out -timeout=120s ./... && cd ..
179179
go tool cover -func cover.out > coverprofile-ecs-agent.out
180180

181+
test-flaky-session:
182+
cd ecs-agent && for i in $$(seq 1 100); do GO111MODULE=on GOEXPERIMENT=nocoverageredesign ${GOTEST} -tags unit -mod vendor -timeout=5m ./acs/session -run TestSessionReconnectsOnDiscoverPollEndpointError; done
183+
181184
.PHONY: analyze-cover-profile
182185
analyze-cover-profile: coverprofile.out coverprofile-ecs-agent.out
183186
./scripts/analyze-cover-profile coverprofile.out

0 commit comments

Comments
 (0)