Skip to content

Commit

Permalink
[AB#1669514] whitespace formats
Browse files Browse the repository at this point in the history
  • Loading branch information
ChronosMasterOfAllTime committed Dec 9, 2024
1 parent 3830f56 commit b07b709
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
12 changes: 6 additions & 6 deletions htap_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ func TestHybridTablesE2E(t *testing.T) {
runSnowflakeConnTest(t, func(sct *SCTest) {
dbQuery := sct.mustQuery("SELECT CURRENT_DATABASE()", nil)
defer func() {
assertNilF(t, dbQuery.Close())
assertNilF(t, dbQuery.Close())
}()
currentDb := make([]driver.Value, 1)
assertNilF(t, dbQuery.Next(currentDb))
Expand All @@ -365,7 +365,7 @@ func TestHybridTablesE2E(t *testing.T) {
sct.mustExec("INSERT INTO test_hybrid_table VALUES (1, 'a')", nil)
rows := sct.mustQuery("SELECT * FROM test_hybrid_table", nil)
defer func() {
assertNilF(t, rows.Close())
assertNilF(t, rows.Close())
}()
row := make([]driver.Value, 2)
assertNilF(t, rows.Next(row))
Expand All @@ -376,7 +376,7 @@ func TestHybridTablesE2E(t *testing.T) {
sct.mustExec("INSERT INTO test_hybrid_table VALUES (2, 'b')", nil)
rows2 := sct.mustQuery("SELECT * FROM test_hybrid_table", nil)
defer func() {
assertNilF(t, rows2.Close())
assertNilF(t, rows2.Close())
}()
assertNilF(t, rows2.Next(row))
if row[0] != "1" || row[1] != "a" {
Expand All @@ -397,7 +397,7 @@ func TestHybridTablesE2E(t *testing.T) {

rows := sct.mustQuery("SELECT * FROM test_hybrid_table_2", nil)
defer func() {
assertNilF(t, rows.Close())
assertNilF(t, rows.Close())
}()
row := make([]driver.Value, 2)
assertNilF(t, rows.Next(row))
Expand All @@ -415,7 +415,7 @@ func TestHybridTablesE2E(t *testing.T) {

rows := sct.mustQuery("SELECT * FROM test_hybrid_table", nil)
defer func() {
assertNilF(t, rows.Close())
assertNilF(t, rows.Close())
}()
if len(sct.sc.queryContextCache.entries) != 3 {
t.Errorf("expected three entries in query context cache, got: %v", sct.sc.queryContextCache.entries)
Expand Down Expand Up @@ -578,7 +578,7 @@ func TestConnIsCleanAfterClose(t *testing.T) {
var dbName2 string
rows2 := dbt2.mustQuery("SELECT CURRENT_DATABASE()")
defer func() {
assertNilF(t, rows2.Close())
assertNilF(t, rows2.Close())
}()
rows2.Next()
assertNilF(t, rows2.Scan(&dbName2))
Expand Down
4 changes: 2 additions & 2 deletions put_get_user_stage_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ func putGetUserStage(t *testing.T, numberOfFiles int, numberOfLines int, isStrea

rows := dbt.mustQuery("select count(*) from " + dbname)
defer func() {
assertNilF(t, rows.Close())
assertNilF(t, rows.Close())
}()
var cnt string
if rows.Next() {
Expand Down Expand Up @@ -133,7 +133,7 @@ func TestPutLoadFromUserStage(t *testing.T) {
file_format = (field_delimiter = '|' error_on_column_count_mismatch
=false) purge=true`, data.stage))
defer func() {
assertNilF(t, rows.Close())
assertNilF(t, rows.Close())
}()
var s0, s1, s2, s3, s4, s5 string
var s6, s7, s8, s9 interface{}
Expand Down
4 changes: 2 additions & 2 deletions rows_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,7 @@ func TestLocationChangesAfterAlterSession(t *testing.T) {
dbt.mustExec("INSERT INTO location_timestamp_ltz VALUES('2023-08-09 10:00:00')")
rows1 := dbt.mustQuery("SELECT * FROM location_timestamp_ltz")
defer func() {
assertNilF(t, rows1.Close())
assertNilF(t, rows1.Close())
}()
if !rows1.Next() {
t.Fatalf("cannot read a record")
Expand All @@ -519,7 +519,7 @@ func TestLocationChangesAfterAlterSession(t *testing.T) {
dbt.mustExec("ALTER SESSION SET TIMEZONE = 'Pacific/Honolulu'")
rows2 := dbt.mustQuery("SELECT * FROM location_timestamp_ltz")
defer func() {
assertNilF(t, rows2.Close())
assertNilF(t, rows2.Close())
}()
if !rows2.Next() {
t.Fatalf("cannot read a record")
Expand Down

0 comments on commit b07b709

Please sign in to comment.