From 574a6a104d47cc34ee527e98ab2f15c516befae7 Mon Sep 17 00:00:00 2001 From: Anton Tayanovskyy Date: Fri, 19 Nov 2021 20:39:11 -0500 Subject: [PATCH] Do not FailNow() in generators (#8469) --- sdk/go/common/resource/testing/rapid.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sdk/go/common/resource/testing/rapid.go b/sdk/go/common/resource/testing/rapid.go index e98b6778c..f04837b22 100644 --- a/sdk/go/common/resource/testing/rapid.go +++ b/sdk/go/common/resource/testing/rapid.go @@ -2,7 +2,7 @@ package testing import ( - "github.com/stretchr/testify/require" + "github.com/stretchr/testify/assert" "pgregory.net/rapid" "github.com/pulumi/pulumi/sdk/v3/go/common/resource" @@ -191,7 +191,7 @@ func StringPropertyGenerator() *rapid.Generator { func TextAssetGenerator() *rapid.Generator { return rapid.Custom(func(t *rapid.T) *resource.Asset { asset, err := resource.NewTextAsset(rapid.String().Draw(t, "text asset contents").(string)) - require.NoError(t, err) + assert.NoError(t, err) return asset }) } @@ -218,7 +218,7 @@ func LiteralArchiveGenerator(maxDepth int) *rapid.Generator { contentsGenerator = rapid.Just(map[string]interface{}{}) } archive, err := resource.NewAssetArchive(contentsGenerator.Draw(t, "literal archive contents").(map[string]interface{})) - require.NoError(t, err) + assert.NoError(t, err) return archive }) }