Skip to content

Commit

Permalink
v4
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-pfus committed Dec 13, 2024
1 parent a7186f5 commit c12650f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 14 deletions.
9 changes: 0 additions & 9 deletions put_get_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -253,11 +253,6 @@ func TestPutLocalFile(t *testing.T) {
}

func TestPutGetWithAutoCompressFalse(t *testing.T) {
level := logger.GetLogLevel()
_ = logger.SetLogLevel("debug")
defer func() {
_ = logger.SetLogLevel(level)
}()
tmpDir := t.TempDir()
testData := filepath.Join(tmpDir, "data.txt")
f, err := os.Create(testData)
Expand All @@ -272,17 +267,14 @@ func TestPutGetWithAutoCompressFalse(t *testing.T) {
assertNilF(t, f.Close())
}()

fmt.Printf("Starting TestPutGetWithAutoCompressFalse at %v\n", time.Now())
runDBTest(t, func(dbt *DBTest) {
stageDir := "test_put_uncompress_file_" + randomString(10)
dbt.mustExec("rm @~/" + stageDir)

// PUT test
fmt.Printf("Running PUT at %v\n", time.Now())
sqlText := fmt.Sprintf("put 'file://%v' @~/%v auto_compress=FALSE", testData, stageDir)
sqlText = strings.ReplaceAll(sqlText, "\\", "\\\\")
dbt.mustExec(sqlText)
fmt.Printf("Finished PUT at %v\n", time.Now())
defer dbt.mustExec("rm @~/" + stageDir)
rows := dbt.mustQuery("ls @~/" + stageDir)
defer func() {
Expand Down Expand Up @@ -335,7 +327,6 @@ func TestPutGetWithAutoCompressFalse(t *testing.T) {
}

func TestPutOverwrite(t *testing.T) {
fmt.Printf("Starting TestPutOverwrite at %v\n", time.Now())
tmpDir := t.TempDir()
testData := filepath.Join(tmpDir, "data.txt")
f, err := os.Create(testData)
Expand Down
5 changes: 0 additions & 5 deletions retry.go
Original file line number Diff line number Diff line change
Expand Up @@ -282,11 +282,6 @@ func (r *retryHTTP) doPost() *retryHTTP {
return r
}

func (r *retryHTTP) doHead() *retryHTTP {
r.method = "HEAD"
return r
}

func (r *retryHTTP) setBody(body []byte) *retryHTTP {
r.bodyCreator = func() ([]byte, error) {
return body, nil
Expand Down

0 comments on commit c12650f

Please sign in to comment.