Skip to content

Commit

Permalink
testing
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-ext-simba-jy committed Feb 8, 2025
1 parent 3e2552a commit f789a1d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions bindings_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -885,9 +885,9 @@ func TestBindingsWithSameValue(t *testing.T) {
dbt.mustExec(fmt.Sprintf("create or replace table %v (c1 integer, c2 string, c3 timestamp_ltz, c4 timestamp_tz, c5 timestamp_ntz, c6 date, c7 time, c9 boolean, c10 double)", interfaceArrayTable))

defer func() {
dbt.mustExec("drop table if exists %v", arrayInsertTable)
dbt.mustExec("drop table if exists %v", stageBindingTable)
dbt.mustExec("drop table if exists %v", interfaceArrayTable)
dbt.mustExec(fmt.Sprintf("drop table if exists %v", arrayInsertTable))
dbt.mustExec(fmt.Sprintf("drop table if exists %v", stageBindingTable))
dbt.mustExec(fmt.Sprintf("drop table if exists %v", interfaceArrayTable))
}()

numRows := 1000
Expand Down Expand Up @@ -1551,8 +1551,8 @@ func testInsertLOBData(t *testing.T, useArrowFormat bool, isLiteral bool) {
func getRandomDate() time.Time {
start := time.Date(1, time.January, 1, 0, 0, 0, 0, time.UTC)
end := time.Date(1400, time.January, 1, 0, 0, 0, 0, time.UTC)
delta := end.Unix() - start.Unix()
sec := rand.Int63n(delta)
gap := end.Unix() - start.Unix()
sec := rand.Int63n(gap)
return start.Add(time.Duration(sec) * time.Second)
}

Expand Down

0 comments on commit f789a1d

Please sign in to comment.