Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TestPutOverwrite debug #1029

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions put_get_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,7 @@ func TestPutOverwrite(t *testing.T) {
t.Fatal(err)
}
}
print("1: ", s0, " | ", s1, " | ", s2, " | ", s3, " | ", s4, " | ", s5, " | ", s6, " | ", s7, "\n")
if s6 != uploaded.String() {
t.Fatalf("expected UPLOADED, got %v", s6)
}
Expand All @@ -344,6 +345,7 @@ func TestPutOverwrite(t *testing.T) {
t.Fatal(err)
}
md5Column := s2
print("2: ", s0, " | ", s1, " | ", s2, " | ", s3, "\n")

f, _ = os.Open(testData)
rows = dbt.mustQueryContext(
Expand All @@ -356,6 +358,7 @@ func TestPutOverwrite(t *testing.T) {
if err = rows.Scan(&s0, &s1, &s2, &s3, &s4, &s5, &s6, &s7); err != nil {
t.Fatal(err)
}
print("3: ", s0, " | ", s1, " | ", s2, " | ", s3, " | ", s4, " | ", s5, " | ", s6, " | ", s7, "\n")
if s6 != skipped.String() {
t.Fatalf("expected SKIPPED, got %v", s6)
}
Expand All @@ -367,6 +370,7 @@ func TestPutOverwrite(t *testing.T) {
if err = rows.Scan(&s0, &s1, &s2, &s3); err != nil {
t.Fatal(err)
}
print("4: ", s0, " | ", s1, " | ", s2, " | ", s3, "\n")
if s2 != md5Column {
t.Fatal("The MD5 column should have stayed the same")
}
Expand All @@ -382,6 +386,7 @@ func TestPutOverwrite(t *testing.T) {
if err = rows.Scan(&s0, &s1, &s2, &s3, &s4, &s5, &s6, &s7); err != nil {
t.Fatal(err)
}
print("5: ", s0, " | ", s1, " | ", s2, " | ", s3, " | ", s4, " | ", s5, " | ", s6, " | ", s7, "\n")
if s6 != uploaded.String() {
t.Fatalf("expected UPLOADED, got %v", s6)
}
Expand All @@ -392,6 +397,7 @@ func TestPutOverwrite(t *testing.T) {
if err = rows.Scan(&s0, &s1, &s2, &s3); err != nil {
t.Fatal(err)
}
print("6: ", s0, " | ", s1, " | ", s2, " | ", s3, "\n")
if s0 != fmt.Sprintf("test_put_overwrite/%v.gz", baseName(testData)) {
t.Fatalf("expected test_put_overwrite/%v.gz, got %v", baseName(testData), s0)
}
Expand Down
Loading