Skip to content

Commit

Permalink
create flaky test and call quality gates
Browse files Browse the repository at this point in the history
  • Loading branch information
hannahkm committed Feb 3, 2025
1 parent 54bc7b7 commit e05655c
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/actions/dd-ci-upload/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,7 @@ runs:
--service ${{ inputs.service }} \
--tags "${{ inputs.tags }}" \
${{ inputs.files }}
- name: Activate Quality Gates
shell: bash
run: datadog-ci gate evaluate
9 changes: 9 additions & 0 deletions ddtrace/tracer/tracer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import (
"errors"
"fmt"
"io"
"math/rand"
"net/http"
"net/http/httptest"
"os"
Expand Down Expand Up @@ -75,6 +76,14 @@ var (
integration bool
)

// This test is meant to flake. We are using this to test quality gates.
// TODO : REMOVE THIS TEST BEFORE MERGING
func TestFlaky(t *testing.T) {
n := rand.Intn(2)
assert.Equal(t, n, 0)

}

func TestMain(m *testing.M) {
if maininternal.BoolEnv("DD_APPSEC_ENABLED", false) {
// things are slower with AppSec; double wait times
Expand Down

0 comments on commit e05655c

Please sign in to comment.