github.com/yandex/pandora@v0.5.32/lib/testutil/matchers_test.go (about)

     1  package testutil
     2  
     3  import (
     4  	"testing"
     5  
     6  	"github.com/stretchr/testify/assert"
     7  	"github.com/stretchr/testify/require"
     8  )
     9  
    10  func TestFlakyPassed(t *testing.T) {
    11  	var run int
    12  	RunFlaky(t, func(t TestingT) {
    13  		run++
    14  		assert.True(t, run >= 3)
    15  	})
    16  }
    17  
    18  func TestFlakyPanic(t *testing.T) {
    19  	var run int
    20  	RunFlaky(t, func(t TestingT) {
    21  		run++
    22  		require.True(t, run >= 3)
    23  	})
    24  }