diff --git a/file_transfer_agent_test.go b/file_transfer_agent_test.go index e608c9544..7a591d414 100644 --- a/file_transfer_agent_test.go +++ b/file_transfer_agent_test.go @@ -63,6 +63,9 @@ func TestUnitDownloadWithInvalidLocalPath(t *testing.T) { f.Close() runDBTest(t, func(dbt *DBTest) { + if _, err = dbt.exec("use role sysadmin"); err != nil { + t.Skip("snowflake admin account not accessible") + } dbt.mustExec("rm @~/test_get") sqlText := fmt.Sprintf("put file://%v @~/test_get", testData) sqlText = strings.ReplaceAll(sqlText, "\\", "\\\\") diff --git a/put_get_test.go b/put_get_test.go index 6c4403630..730efbcbb 100644 --- a/put_get_test.go +++ b/put_get_test.go @@ -268,6 +268,9 @@ func TestPutWithAutoCompressFalse(t *testing.T) { defer f.Close() runDBTest(t, func(dbt *DBTest) { + if _, err = dbt.exec("use role sysadmin"); err != nil { + t.Skip("snowflake admin account not accessible") + } dbt.mustExec("rm @~/test_put_uncompress_file") sqlText := fmt.Sprintf("put file://%v @~/test_put_uncompress_file auto_compress=FALSE", testData) sqlText = strings.ReplaceAll(sqlText, "\\", "\\\\")