Skip to content

Flaky Snowflake unit tests #3822

Open
Open
@rgmz

Description

The Snowflake unit tests are flaky and periodically fail:

--- FAIL: TestSnowflake_Pattern (0.01s)
    --- FAIL: TestSnowflake_Pattern/Snowflake_Credentials (0.01s)
        snowflake_test.go:70: did not receive result
    --- FAIL: TestSnowflake_Pattern/Private_Snowflake_Credentials (0.00s)
        snowflake_test.go:70: did not receive result
    --- FAIL: TestSnowflake_Pattern/Snowflake_Credentials_-_Single_Character_account (0.00s)
        snowflake_test.go:70: did not receive result
FAIL
FAIL	github.com/trufflesecurity/trufflehog/v3/pkg/detectors/snowflake	0.618s

This is presumably due to the use of brianvoe/gofakeit to generate values.

func TestSnowflake_Pattern(t *testing.T) {
username := gofakeit.Username()
password := gofakeit.Password(true, true, true, false, false, 10)


I don't know if these are valid results being missed, or invalid generated values that ought to be skipped.

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions