Skip to content

Commit

Permalink
Skip known flaky queue tests on CI environment (#24443)
Browse files Browse the repository at this point in the history
Backport of #24419 to 1.19.
  • Loading branch information
silverwind authored Apr 30, 2023
1 parent bfdbc62 commit f1a0b64
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions modules/queue/queue_channel_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
package queue

import (
"os"
"sync"
"testing"
"time"
Expand Down Expand Up @@ -101,6 +102,9 @@ func TestChannelQueue_Batch(t *testing.T) {
}

func TestChannelQueue_Pause(t *testing.T) {
if os.Getenv("CI") != "" {
t.Skip("Skipping because test is flaky on CI")
}
lock := sync.Mutex{}
var queue Queue
var err error
Expand Down
4 changes: 4 additions & 0 deletions modules/queue/unique_queue_disk_channel_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ package queue

import (
"fmt"
"os"
"strconv"
"sync"
"testing"
Expand All @@ -16,6 +17,9 @@ import (
)

func TestPersistableChannelUniqueQueue(t *testing.T) {
if os.Getenv("CI") != "" {
t.Skip("Skipping because test is flaky on CI")
}
tmpDir := t.TempDir()
fmt.Printf("TempDir %s\n", tmpDir)
_ = log.NewLogger(1000, "console", "console", `{"level":"warn","stacktracelevel":"NONE","stderr":true}`)
Expand Down

0 comments on commit f1a0b64

Please sign in to comment.